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
ConstructorsConstructorDescriptionAsyncAutoEnchanterProcessEvent(ItemStack item, ItemStack enchantedBook, BlockMenu menu) -
Method Summary
Modifier and TypeMethodDescriptionThis returns theItemStackthat is being used enchanted bookstatic HandlerListgetItem()This returns theItemStackthat is being enchanted.getMenu()This returns theAutoEnchanter'sBlockMenubooleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AsyncAutoEnchanterProcessEvent
-
-
Method Details
-
getItem
This returns theItemStackthat is being enchanted.- Returns:
- The
ItemStackthat is being enchanted
-
getEnchantedBook
This returns theItemStackthat is being used enchanted book- Returns:
- The
ItemStackthat is being used enchanted book
-
getMenu
This returns theAutoEnchanter'sBlockMenu- Returns:
- The
BlockMenuofAutoEnchanterthat is enchanting item
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-