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
-
Method Summary
Modifier and TypeMethodDescriptionGets the flowerpot that is involved in this event.static @NotNull HandlerList
getItem()
Gets the item being placed, or taken from, the flower pot.boolean
Gets the cancellation state of this event.boolean
Gets if the item is being placed into the flowerpot.void
setCancelled
(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerFlowerPotManipulateEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Gets 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:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Cancellable
Sets 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:
setCancelled
in 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:
getHandlers
in classEvent
-
getHandlerList
-