Class AutoEnchantEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AutoEnchantEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AutoEnchantEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
- Author:
- WalshyDev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionAutoEnchantEvent(org.bukkit.inventory.ItemStack item) AutoEnchantEvent(org.bukkit.inventory.ItemStack item, org.bukkit.block.Block block) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.BlockgetBlock()This returns theBlockthat is enchanting itemsstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.inventory.ItemStackgetItem()This returns theItemStackthat is being enchanted.booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AutoEnchantEvent
public AutoEnchantEvent(@Nonnull org.bukkit.inventory.ItemStack item) -
AutoEnchantEvent
public AutoEnchantEvent(@Nonnull org.bukkit.inventory.ItemStack item, @Nullable org.bukkit.block.Block block)
-
-
Method Details
-
getItem
@Nonnull public org.bukkit.inventory.ItemStack getItem()This returns theItemStackthat is being enchanted.- Returns:
- The
ItemStackthat is being enchanted
-
getBlock
@Nullable public org.bukkit.block.Block getBlock()This returns theBlockthat is enchanting items- Returns:
- The
Blockthat is enchanting items
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-