Class AsyncAutoEnchanterProcessEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AsyncAutoEnchanterProcessEvent
- All Implemented Interfaces:
Cancellable
- Author:
- StarWishsama
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncAutoEnchanterProcessEvent
(ItemStack item, ItemStack enchantedBook, BlockMenu menu) -
Method Summary
Modifier and TypeMethodDescriptionThis returns theItemStack
that is being used enchanted bookstatic HandlerList
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
getEventName, isAsynchronous
-
Constructor Details
-
AsyncAutoEnchanterProcessEvent
-
-
Method Details
-
getItem
This returns theItemStack
that is being enchanted.- Returns:
- The
ItemStack
that is being enchanted
-
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-