getAs

fun <T> getAs(clazz: Class<T>, blockPosition: BlockPosition): T?(source)

Returns the Pylon block (of type T) at the given blockPosition, or null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded


fun <T> getAs(clazz: Class<T>, block: Block): T?(source)

Returns the Pylon block (of type T) at the given block, or null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded


fun <T> getAs(clazz: Class<T>, location: Location): T?(source)

Returns the Pylon block (of type T) at the given location, or null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded


inline fun <T> getAs(blockPosition: BlockPosition): T?(source)

Gets the Pylon block (of type T) at the given blockPosition.

Returns null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded


inline fun <T> getAs(block: Block): T?(source)

Returns the Pylon block (of type T) at the given block.

Returns null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded


inline fun <T> getAs(location: Location): T?(source)

Returns the Pylon block (of type T) at the given location.

Returns null if the block does not exist or is not of the expected class.

Throws

if the chunk containing the block is not loaded