Raven B4
  • Main Page
  • Guide
    • Setup
    • Examples
  • Documentation
    • imports
    • events
    • client
    • entity
    • network
    • world
    • render
    • gl
    • modules
    • config
    • keybinds
    • inventory
    • tile entity
    • util
    • bridge
    • http
    • json
    • packets
    • objects
Powered by GitBook
On this page
  • getBlockAt
  • getDimension
  • getEntities
  • getEntityById
  • getNetworkPlayers
  • getPlayerEntities
  • getScoreboard
  • getTeams
  • getTileEntities
  1. Documentation

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 5 months ago