Cancellablepublic class WitchReadyPotionEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor | Description |
|---|---|
WitchReadyPotionEvent(Witch witch,
ItemStack potion) |
| Modifier and Type | Method | Description |
|---|---|---|
Witch |
getEntity() |
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
ItemStack |
getPotion() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
static ItemStack |
process(Witch witch,
ItemStack potion) |
Fires thee event, returning the desired potion, or air of cancelled
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setPotion(ItemStack potion) |
Sets the potion the which is going to hold and use
|
getEntityTypecallEvent, getEventName, isAsynchronous@Nullable public static ItemStack process(@NotNull Witch witch, @Nullable ItemStack potion)
witch - the witch whom is readying to use a potionpotion - the potion to be used@NotNull public Witch getEntity()
EntityEventgetEntity in class EntityEventpublic void setPotion(@Nullable ItemStack potion)
potion - The potion@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2020. All rights reserved.