Class ComplexFurniturePlacedEvent
java.lang.Object
org.bukkit.event.Event
dev.lone.itemsadder.api.Events.ComplexFurniturePlacedEvent
- All Implemented Interfaces:
Cancellable
Called after complex furniture has been placed.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Method Summary
Modifier and TypeMethodDescription@Nullable CustomComplexFurnitureGets the complex furniture wrapper for this event.static @NotNull HandlerList@NotNull HandlerList@Nullable StringGets the complex furniture namespaced id.booleanvoidsetCancelled(boolean cancelled) Warning: You should probably not use this event `FurniturePlacedEvent`.Methods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
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 interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-
getFurniture
Gets the complex furniture wrapper for this event.- Returns:
- the complex furniture wrapper, or null if it cannot be resolved.
-
getNamespacedID
Gets the complex furniture namespaced id.- Returns:
- the namespaced id, or null if unavailable.
-