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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerFlowerPotManipulateEvent
 
- 
- 
Method Details- 
isCancelledpublic 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 interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic 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 interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getFlowerpotGets the flowerpot that is involved in this event.- Returns:
- the flowerpot that is involved with this event
 
- 
getItemGets the item being placed, or taken from, the flower pot. Check if placing withisPlacing().- Returns:
- the item placed, or taken from, the flowerpot
 
- 
isPlacingpublic 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 class- Event
 
- 
getHandlerList
 
-