Class FurnitureInteractEvent

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

public class FurnitureInteractEvent extends PlayerEvent implements Cancellable
Called when a player interacts with simple furniture.
  • 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()
    • getAction

      @NotNull public @NotNull Action getAction()
      Gets the Bukkit interaction action.
      Returns:
      the interaction action.
    • getFurniture

      @Nullable public @Nullable CustomFurniture getFurniture()
      Gets the furniture wrapper for this event.
      Returns:
      the furniture wrapper, or null if it cannot be resolved.
    • getNamespacedID

      @Nullable public @Nullable String getNamespacedID()
      Gets the furniture namespaced id.
      Returns:
      the namespaced id, or null if unavailable.
    • getBukkitEntity

      public Entity getBukkitEntity()
      Gets the Bukkit entity used by this furniture.
      Returns:
      the Bukkit entity.