Package io.papermc.paper.event.player
Class PlayerFlowerPotManipulateEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent
- All Implemented Interfaces:
Cancellable
Called when a player places an item in or takes an item out of a flowerpot.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the flowerpot that is involved in this event.static @NotNull HandlerListgetItem()Gets the item being placed, or taken from, the flower pot.booleanGets the cancellation state of this event.booleanGets if the item is being placed into the flowerpot.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerFlowerPotManipulateEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceCancellable- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel- true if you wish to cancel this event
-
getFlowerpot
Gets the flowerpot that is involved in this event.- Returns:
- the flowerpot that is involved with this event
-
getItem
Gets the item being placed, or taken from, the flower pot. Check if placing withisPlacing().- Returns:
- the item placed, or taken from, the flowerpot
-
isPlacing
public boolean isPlacing()Gets if the item is being placed into the flowerpot.- Returns:
- if the item is being placed into the flowerpot
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-