Class WitchThrownPotionEvent

java.lang.Object
org.bukkit.event.Event
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
  • 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: ItemEvent
      Returns item, involved in event.
      Specified by:
      getItem in interface ItemEvent
      Returns:
      item from event.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable