Package dev.lone.itemsadder.api.Events
Class FurniturePlacedEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.FurniturePlacedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class FurniturePlacedEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Called after placing the furniture.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionFurniturePlacedEvent(@NotNull org.bukkit.entity.Player who) Constructs a new FurnitureEvent. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.EntityGets the Bukkit entity associated with this event.@Nullable CustomFurnitureGets the custom furniture associated with this event.static @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@Nullable StringGets the namespaced ID of the custom furniture.booleanvoidsetCancelled(boolean cancelled) Warning: You should probably not use this event `FurniturePlacedEvent`.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
FurniturePlacedEvent
public FurniturePlacedEvent(@NotNull @NotNull org.bukkit.entity.Player who) Constructs a new FurnitureEvent.- Parameters:
who- The player who triggered the event.- Throws:
NotActuallyItemsAdderException- Always thrown to indicate this is a placeholder.
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.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:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList() -
getFurniture
Gets the custom furniture associated with this event.- Returns:
- The custom furniture, or null if not applicable.
- Throws:
NotActuallyItemsAdderException- Always thrown to indicate this is a placeholder.
-
getNamespacedID
Gets the namespaced ID of the custom furniture.- Returns:
- The namespaced ID, or null if not applicable.
- Throws:
NotActuallyItemsAdderException- Always thrown to indicate this is a placeholder.
-
getBukkitEntity
public org.bukkit.entity.Entity getBukkitEntity()Gets the Bukkit entity associated with this event.- Returns:
- The Bukkit entity.
- Throws:
NotActuallyItemsAdderException- Always thrown to indicate this is a placeholder.
-