Class CustomBlockBreakEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.CustomBlockBreakEvent
- All Implemented Interfaces:
Cancellable
Called when a player breaks an ItemsAdder custom block.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Gets the broken block.Gets the custom block item stack.static @NotNull HandlerList@NotNull HandlerListGets the custom block namespaced id.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-
getCustomBlockItem
Gets the custom block item stack.- Returns:
- a Bukkit item stack copy of the custom block.
-
getNamespacedID
-
getBlock
-