Skip to content

Block

endstone.block

Block

Represents a block.

dimension property

dimension: Dimension

Gets the dimension which contains this Block

location property

location: Location

Gets the Location of the block

type property

type: str

Get the type of the block.

x property

x: int

Gets the x-coordinate of this block

y property

y: int

Gets the y-coordinate of this block

z property

z: int

Gets the z-coordinate of this block

get_relative

get_relative(
    offset_x: int, offset_y: int, offset_z: int
) -> Block

Gets the block at the given offsets

get_relative(face: BlockFace, distance: int = 1) -> Block

Gets the block at the given distance of the given face

BlockFace

BlockFace(value: int)

DOWN class-attribute

DOWN: BlockFace

EAST class-attribute

EAST: BlockFace

NORTH class-attribute

NORTH: BlockFace

SOUTH class-attribute

SOUTH: BlockFace

UP class-attribute

WEST class-attribute

WEST: BlockFace

name property

name: str

value property

value: int