world

World/entity related functions.

getBlockAt

Block block = world.getBlockAt(Vec3 position);

Returns a block at a specified position.

getDimension

String dimension = world.getDimension();

Returns the current dimension name.

getEntities

List<Entity> entities = world.getEntities();

Returns the entity list.

getEntityById

Entity entity = world.getEntityById(int entityId);

Returns an entity from their entity ID.

getNetworkPlayers

List<NetworkPlayer> networkPlayers = world.getNetworkPlayers();

Returns the network player list.

getPlayerEntities

List<Entity> players = world.getPlayerEntities();

Returns the player entity list.

getScoreboard

List<String> scoreboard = world.getScoreboard();

Returns the scoreboard.

getTeams

Map<String, List<String>> teamMap = world.getTeams();

Returns the team map.

getTileEntities

List<TileEntity> tileEntities = world.getTileEntities();

Returns the tile entity list.

Last updated