BlockPos
Last updated
A block position.
new BlockPos(
x,y,z):BlockPos
Parameters
x
number
y
number
z
number
Returns
BlockPos
readonlyposX:number
Gets the X coordinate.
readonlyposY:number
Gets the Y coordinate.
readonlyposZ:number
Gets the Z coordinate.
down():
BlockPos
Gets the BlockPos one block down.
Returns
BlockPos
east():
BlockPos
Gets the BlockPos one block east.
Returns
BlockPos
getBlockId():
number
Gets the block ID at this position.
Returns
number
getHardness():
number
Gets the hardness of the block at this position.
Returns
number
isAir():
boolean
Checks if the block at this position is air.
Returns
boolean
isReplaceable():
boolean
Checks if the block at this position is replaceable.
Returns
boolean
isSolid():
boolean
Checks if the block at this position is solid.
Returns
boolean
north():
BlockPos
Gets the BlockPos one block north.
Returns
BlockPos
south():
BlockPos
Gets the BlockPos one block south.
Returns
BlockPos
up():
BlockPos
Gets the BlockPos one block up.
Returns
BlockPos
west():
BlockPos
Gets the BlockPos one block west.
Returns
BlockPos
Last updated