World
Entity
world.getEntityList
Returns an array of entities within your render distance
world.getEntityList()
world.getPlayerEntities
Returns an array of player entities within your render distance
world.getPlayerEntities()
world.getBlockAtBlockPos
Returns the Block object
Parameters
Type
Description
pos
BlockPos
world.getBlockAtBlockPos(pos) - Block
world.getBlockPos
Returns a BlockPos object from the given coordinates
Parameters
Type
x
Integer
y
Integer
z
Integer
world.getBlockPos(x,y,z) - BlockPos
world.getBlockName
Returns an unlocalized name of a block
Parameters
Type
block
Block
world.getBlockName(block) - String
world.removeEntity
Removes the given player from the world
Parameter
Type
entity
Entity
world.removeEntity(entity)
Last updated
Was this helpful?