Class WitchThrownPotionEvent
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.events.WorldEvent
ua.mcchickenstudio.opencreative.coding.blocks.events.entity.fighting.WitchThrownPotionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable,ItemEvent
public final class WitchThrownPotionEvent
extends WorldEvent
implements org.bukkit.event.Cancellable, ItemEvent
-
Field Summary
Fields inherited from class ua.mcchickenstudio.opencreative.coding.blocks.events.WorldEvent
selection, world -
Constructor Summary
ConstructorsConstructorDescriptionWitchThrownPotionEvent(com.destroystokyo.paper.event.entity.WitchThrowPotionEvent event) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.ItemStackgetItem()Returns item, involved in event.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.events.WorldEvent
callEvent, canActivate, getPlanet, getSelection, getWorld
-
Constructor Details
-
WitchThrownPotionEvent
public WitchThrownPotionEvent(com.destroystokyo.paper.event.entity.WitchThrowPotionEvent event)
-
-
Method Details
-
getItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItem()Description copied from interface:ItemEventReturns item, involved in event. -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-