Class FurniturePrePlaceEvent

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

public class FurniturePrePlaceEvent extends PlayerEvent implements Cancellable
Called before placing, to avoid useless processing. Exposes the `namespacedId` and `location` of the entity, but no entity is spawned.
  • Method Details

    • isCancelled

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

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • getNamespacedID

      public String getNamespacedID()
      Gets the furniture namespaced id.
      Returns:
      the namespaced id.
    • getLocation

      public Location getLocation()
      Gets the target placement location.
      Returns:
      the placement location.
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()