place Block
fun placeBlock(blockPosition: BlockPosition, key: NamespacedKey, context: BlockCreateContext = BlockCreateContext.Default(blockPosition.block)): PylonBlock?(source)
Creates a new Pylon block. Only call on the main thread.
Return
The block that was placed, or null if the block placement was cancelled
Throws
if the chunk of the given blockPosition is not loaded, the block already contains a Pylon block, or the block type given by key does not exist.
fun placeBlock(block: Block, key: NamespacedKey, context: BlockCreateContext = BlockCreateContext.Default(block)): PylonBlock?(source)
Creates a new Pylon block. Only call on the main thread.
Return
The block that was placed, or null if the block placement was cancelled
Throws
fun placeBlock(location: Location, key: NamespacedKey, context: BlockCreateContext = BlockCreateContext.Default(location.block)): PylonBlock?(source)
Creates a new Pylon block. Only call on the main thread.
Return
The block that was placed, or null if the block placement was cancelled