Cancellablepublic class PlayerFlowerPotManipulateEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerFlowerPotManipulateEvent(Player player,
Block flowerpot,
ItemStack item,
boolean placing) |
| Modifier and Type | Method | Description |
|---|---|---|
Block |
getFlowerpot() |
Gets the flowerpot that is involved in this event.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
ItemStack |
getItem() |
Gets the item being placed, or taken from, the flower pot.
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
boolean |
isPlacing() |
Gets if the item is being placed into the flowerpot.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public Block getFlowerpot()
@NotNull public ItemStack getItem()
isPlacing().public boolean isPlacing()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.