Class SlimefunBlockBreakEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.SlimefunBlockBreakEvent
- All Implemented Interfaces:
Cancellable
- Author:
- J3fftw1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionSlimefunBlockBreakEvent
(Player player, ItemStack heldItem, Block blockBroken, SlimefunItem slimefunItem) -
Method Summary
Modifier and TypeMethodDescriptionThis gets the brokenBlock
static HandlerList
This gets thePlayer
This gets theSlimefunItem
being brokenboolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SlimefunBlockBreakEvent
@ParametersAreNonnullByDefault public SlimefunBlockBreakEvent(Player player, ItemStack heldItem, Block blockBroken, SlimefunItem slimefunItem) - Parameters:
player
- ThePlayer
who broke thisSlimefunItem
heldItem
- TheItemStack
held by thePlayer
blockBroken
- TheBlock
broken by thePlayer
slimefunItem
- TheSlimefunItem
within theItemStack
-
-
Method Details
-
getBlockBroken
This gets the brokenBlock
- Returns:
- The broken
Block
-
getSlimefunItem
This gets theSlimefunItem
being broken- Returns:
- The
SlimefunItem
being broken
-
getHeldItem
- Returns:
- The held
ItemStack
-
getPlayer
This gets thePlayer
- Returns:
- The
Player
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-