Class AutoDisenchantEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AutoDisenchantEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AutoDisenchantEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
- Author:
- poma123
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionAutoDisenchantEvent
(org.bukkit.inventory.ItemStack item) AutoDisenchantEvent
(org.bukkit.inventory.ItemStack item, org.bukkit.block.Block block) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.Block
getBlock()
This returns theBlock
that is disenchanting itemsstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
getItem()
This returns theItemStack
that is being disenchanted.boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AutoDisenchantEvent
public AutoDisenchantEvent(@Nonnull org.bukkit.inventory.ItemStack item) -
AutoDisenchantEvent
public AutoDisenchantEvent(@Nonnull org.bukkit.inventory.ItemStack item, @Nullable org.bukkit.block.Block block)
-
-
Method Details
-
getItem
@Nonnull public org.bukkit.inventory.ItemStack getItem()This returns theItemStack
that is being disenchanted.- Returns:
- The
ItemStack
that is being disenchanted
-
getBlock
@Nullable public org.bukkit.block.Block getBlock()This returns theBlock
that is disenchanting items- Returns:
- The
Block
that is disenchanting items
-
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
-
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
-