PlayerPlaceBlockEvent

Called when a player places a block.

Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
abstract val block: BlockState

The block that was placed.

Link copied to clipboard
abstract val face: Direction

The face of the block on which the block was placed.

Link copied to clipboard
abstract val hand: Hand

The hand that the player used to place the block.

Link copied to clipboard
abstract val isInsideBlock: Boolean

Whether the player's head is inside the block.

Link copied to clipboard
abstract val player: Player

The player involved in this event.

Link copied to clipboard
abstract val position: Vec3i

The position where the block was placed.