CustomBlockDataMoveEvent

class CustomBlockDataMoveEvent(plugin: Plugin, blockFrom: Block, blockTo: Block, bukkitEvent: Event) : CustomBlockDataEvent(source)

Called when a block with CustomBlockData is moved by a piston to a new location.

Blocks with protected CustomBlockData (see {@link CustomBlockData#isProtected()} will not trigger this event, however it is possible that unprotected CustomBlockData will be moved to a destination block with protected CustomBlockData. You have to cancel this event yourself to prevent this.

Constructors

Link copied to clipboard
constructor(plugin: Plugin, blockFrom: Block, blockTo: Block, bukkitEvent: Event)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun callEvent(): Boolean
Link copied to clipboard
fun getBlock(): Block
Link copied to clipboard
fun getBlockTo(): Block
Link copied to clipboard
fun getBukkitEvent(): Event
Link copied to clipboard
Link copied to clipboard
@NotNull
open fun getEventName(): @NotNull String
Link copied to clipboard
open override fun getHandlers(): HandlerList
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isCancelled(): Boolean
Link copied to clipboard
open override fun setCancelled(cancel: Boolean)