BlockCreateContext

Information surrounding a block place event.

Inheritors

Types

Link copied to clipboard
data class Default @JvmOverloads constructor(val block: Block, val shouldSetType: Boolean = true) : Record, BlockCreateContext

A context in which no other reason is specified

Link copied to clipboard
data class PlayerPlace(val player: Player, val item: ItemStack, val event: BlockPlaceEvent) : BlockCreateContext

A player has placed the block

Link copied to clipboard
data class PluginGenerate(val plugin: Plugin, val block: Block, val item: ItemStack) : Record, BlockCreateContext

A plugin generated the block ex:

Properties

Link copied to clipboard
abstract val block: Block

The old block where the new block is about to be created.

Link copied to clipboard
@get:JvmName(name = "shouldSetType")
open val shouldSetType: Boolean

If true, the type of the block will be set to the type of the Pylon block