Class FurniturePlacedEvent

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

public class FurniturePlacedEvent extends PlayerEvent implements Cancellable
Called after simple furniture has been placed.
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Warning: You should probably not use this event `FurniturePlacedEvent`. If you need to cancel furniture placement you should instead listen to `FurniturePrePlaceEvent` event. Using this event `FurniturePlacedEvent` just to cancel the placement of the furniture is CPU consuming.
      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()
    • 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.