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

public class CustomBlockDataMoveEvent extends CustomBlockDataEvent
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.
  • Constructor Details

    • CustomBlockDataMoveEvent

      public CustomBlockDataMoveEvent(@NotNull Plugin plugin, @NotNull Block blockFrom, @NotNull Block blockTo, @NotNull Event bukkitEvent)
  • Method Details

    • getBlockTo

      @NotNull public Block getBlockTo()