Class CustomBlockInteractEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.CustomBlockInteractEvent
- All Implemented Interfaces:
Cancellable
Called when a player interacts with an ItemsAdder custom block.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Method Summary
Modifier and TypeMethodDescriptionGets the Bukkit interaction action.Gets the clicked custom block.Gets the clicked block face.Gets the custom block item stack.getHand()Gets the hand used for the interaction.static @NotNull HandlerList@NotNull HandlerListgetItem()Gets the item used during the interaction.Gets 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
-
getItem
-
getAction
-
getBlockClicked
-
getBlockFace
-
getHand
-