world
World/entity related functions.
All world functions must have World world = client.getWorld();
getBlockAt
Returns a block at a specified position.
getDimension
Returns the current dimension name.
getEntities
Returns the world's entity list.
getEntityById
Returns an entity from their entity ID.
getNetworkPlayers
Returns the world's network player list.
getPlayerEntities
Returns the world's player entity list.
getScoreboard
Returns the scoreboard.
getTeams
Returns a map of the server's teams.
getTileEntities
Returns the world's tile entities.
raycastBlock
Casts a ray with a specified angle and returns the position, offset, and face of the hit. Custom yaw and pitch input is optional.
property | index | type |
---|---|---|
position | 0 | Vec3 |
offset | 1 | Vec3 |
face | 2 | String |
raycastEntity
Casts a ray with a specified angle and returns the entity, offset, and distance squared of the hit. Custom yaw and pitch input is optional.
property | index | type |
---|---|---|
entity | 0 | Entity |
offset | 1 | Vec3 |
distance^2 | 2 | double |
Last updated