Class ComplexFurnitureInteractEvent

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

public class ComplexFurnitureInteractEvent extends Event implements Cancellable
Called when a player interacts with complex 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 CustomComplexFurniture getFurniture()
      Gets the complex furniture wrapper for this event.
      Returns:
      the complex furniture wrapper, or null if it cannot be resolved.
    • getNamespacedID

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