Default

data class Default @JvmOverloads constructor(val player: Player? = null, val block: Block, val facing: BlockFace = BlockFace.NORTH, val facingVertical: BlockFace = BlockFace.NORTH, val item: ItemStack? = null, val shouldSetType: Boolean = true) : BlockCreateContext, Record(source)

A context in which no other reason is specified

Constructors

Link copied to clipboard
constructor(player: Player? = null, block: Block, facing: BlockFace = BlockFace.NORTH, facingVertical: BlockFace = BlockFace.NORTH, item: ItemStack? = null, shouldSetType: Boolean = true)

Properties

Link copied to clipboard
open override val block: Block

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

Link copied to clipboard
open override val facing: BlockFace

The direction in which this block was placed. NORTH, EAST, SOUTH, WEST.

Link copied to clipboard
open override val facingVertical: BlockFace

The direction in which this block was placed. NORTH, EAST, SOUTH, WEST, UP, DOWN

Link copied to clipboard
open override val item: ItemStack?

The item used to create the block, if applicable.

Link copied to clipboard
open override val player: Player?

The player who placed/caused the block to be placed, if applicable

Link copied to clipboard
open override val shouldSetType: Boolean

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