break Block
fun breakBlock(blockPosition: BlockPosition, context: BlockBreakContext = BlockBreakContext.PluginBreak(blockPosition.block)): List<ItemStack>?(source)
Removes a Pylon block and breaks the physical block in the world. Does nothing if the block is not a Pylon block. Only call on the main thread.
Throws
if the chunk of the given blockPosition is not loaded.
fun breakBlock(block: Block, context: BlockBreakContext = BlockBreakContext.PluginBreak(block)): List<ItemStack>?(source)
fun breakBlock(block: PylonBlock, context: BlockBreakContext = BlockBreakContext.PluginBreak(block.block)): List<ItemStack>?(source)
Removes a Pylon block and breaks the physical block in the world. Does nothing if the block is not a Pylon block. Only call on the main thread.
Throws
if the chunk of the given block is not loaded.
fun breakBlock(location: Location, context: BlockBreakContext = BlockBreakContext.PluginBreak(location.block)): List<ItemStack>?(source)
Removes a Pylon block and breaks the physical block in the world. Does nothing if the block is not a Pylon block. Only call on the main thread.
Throws
if the chunk of the given location is not loaded.