Class CustomBlockDataMoveEvent
java.lang.Object
org.bukkit.event.Event
com.jeff_media.customblockdata.events.CustomBlockDataEvent
com.jeff_media.customblockdata.events.CustomBlockDataMoveEvent
- All Implemented Interfaces:
Cancellable
Called when a block with CustomBlockData is moved by a piston to a new location.
Blocks with protected CustomBlockData (see
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.-
Nested Class Summary
Nested classes/interfaces inherited from class com.jeff_media.customblockdata.events.CustomBlockDataEvent
CustomBlockDataEvent.Reason
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionCustomBlockDataMoveEvent
(Plugin plugin, Block blockFrom, Block blockTo, Event bukkitEvent) -
Method Summary
Methods inherited from class com.jeff_media.customblockdata.events.CustomBlockDataEvent
getBlock, getBukkitEvent, getCustomBlockData, getHandlerList, getHandlers, getReason, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CustomBlockDataMoveEvent
-
-
Method Details
-
getBlockTo
-