Class AsyncAutoEnchanterProcessEvent

java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AsyncAutoEnchanterProcessEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class AsyncAutoEnchanterProcessEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
An Event that is called whenever an AutoEnchanter is enchanting an ItemStack.
Author:
StarWishsama
  • Constructor Details

    • AsyncAutoEnchanterProcessEvent

      public AsyncAutoEnchanterProcessEvent(@Nonnull org.bukkit.inventory.ItemStack item, @Nonnull org.bukkit.inventory.ItemStack enchantedBook, @Nonnull BlockMenu menu)
  • Method Details

    • getItem

      @Nonnull public org.bukkit.inventory.ItemStack getItem()
      This returns the ItemStack that is being enchanted.
      Returns:
      The ItemStack that is being enchanted
    • getEnchantedBook

      @Nonnull public org.bukkit.inventory.ItemStack getEnchantedBook()
      This returns the ItemStack that is being used enchanted book
      Returns:
      The ItemStack that is being used enchanted book
    • getMenu

      @Nonnull public BlockMenu getMenu()
      This returns the AutoEnchanter's BlockMenu
      Returns:
      The BlockMenu of AutoEnchanter that is enchanting item
    • getHandlerList

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • isCancelled

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

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