Class FurnitureInteractEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.FurnitureInteractEvent
- All Implemented Interfaces:
Cancellable
Called when a player interacts with simple furniture.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Method Summary
Modifier and TypeMethodDescription@NotNull ActionGets the Bukkit interaction action.Gets the Bukkit entity used by this furniture.@Nullable CustomFurnitureGets the furniture wrapper for this event.static @NotNull HandlerList@NotNull HandlerList@Nullable StringGets the furniture 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
-
getAction
Gets the Bukkit interaction action.- Returns:
- the interaction action.
-
getFurniture
Gets the furniture wrapper for this event.- Returns:
- the furniture wrapper, or null if it cannot be resolved.
-
getNamespacedID
Gets the furniture namespaced id.- Returns:
- the namespaced id, or null if unavailable.
-
getBukkitEntity
Gets the Bukkit entity used by this furniture.- Returns:
- the Bukkit entity.
-