Class CustomBlockBreakEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.CustomBlockBreakEvent
All Implemented Interfaces:
Cancellable

public class CustomBlockBreakEvent extends PlayerEvent implements Cancellable
Called when a player breaks an ItemsAdder custom block.
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
    • getCustomBlockItem

      public ItemStack getCustomBlockItem()
      Gets the custom block item stack.
      Returns:
      a Bukkit item stack copy of the custom block.
    • getNamespacedID

      public String getNamespacedID()
      Gets the custom block namespaced id.
      Returns:
      the namespaced id.
    • getBlock

      public Block getBlock()
      Gets the broken block.
      Returns:
      the broken block.