Class CustomBlockDataMoveEvent
java.lang.Object
org.bukkit.event.Event
com.jeff_media.customblockdata.events.CustomBlockDataEvent
com.jeff_media.customblockdata.events.CustomBlockDataMoveEvent
- All Implemented Interfaces:
org.bukkit.event.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.ReasonNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockDataMoveEvent(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.block.Block blockFrom, @NotNull org.bukkit.block.Block blockTo, @NotNull org.bukkit.event.Event bukkitEvent) -
Method Summary
Methods inherited from class com.jeff_media.customblockdata.events.CustomBlockDataEvent
getBlock, getBukkitEvent, getCustomBlockData, getHandlerList, getHandlers, getReason, isCancelled, setCancelledMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CustomBlockDataMoveEvent
public CustomBlockDataMoveEvent(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.block.Block blockFrom, @NotNull @NotNull org.bukkit.block.Block blockTo, @NotNull @NotNull org.bukkit.event.Event bukkitEvent)
-
-
Method Details
-
getBlockTo
@NotNull public @NotNull org.bukkit.block.Block getBlockTo()
-