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
- Author:
- StarWishsama
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncAutoEnchanterProcessEvent
(org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack enchantedBook, BlockMenu menu) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
This returns theItemStack
that is being used enchanted bookstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
getItem()
This returns theItemStack
that is being enchanted.getMenu()
This returns theAutoEnchanter
'sBlockMenu
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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 theItemStack
that is being enchanted.- Returns:
- The
ItemStack
that is being enchanted
-
getEnchantedBook
@Nonnull public org.bukkit.inventory.ItemStack getEnchantedBook()This returns theItemStack
that is being used enchanted book- Returns:
- The
ItemStack
that is being used enchanted book
-
getMenu
This returns theAutoEnchanter
'sBlockMenu
- Returns:
- The
BlockMenu
ofAutoEnchanter
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 classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-