Class ExplosiveToolBreakBlocksEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.ExplosiveToolBreakBlocksEvent
- All Implemented Interfaces:
Cancellable
This
Event
is called when an ExplosiveTool
is used to break blocks.- Author:
- GallowsDove
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionExplosiveToolBreakBlocksEvent
(Player player, Block block, List<Block> blocks, ItemStack item, ExplosiveTool explosiveTool) -
Method Summary
Modifier and TypeMethodDescriptionGets theExplosiveTool
which triggered this eventstatic HandlerList
Gets theItemStack
of the tool used to destroy this blockThis returns the primaryBlock
that was broken.boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ExplosiveToolBreakBlocksEvent
-
-
Method Details
-
getPrimaryBlock
This returns the primaryBlock
that was broken. ThisBlock
triggered thisEvent
and is not included ingetAdditionalBlocks()
.- Returns:
- The primary broken
Block
-
getAdditionalBlocks
- Returns:
- The broken blocks
-
getExplosiveTool
Gets theExplosiveTool
which triggered this event- Returns:
- the
ExplosiveTool
that was involved
-
getItemInHand
Gets theItemStack
of the tool used to destroy this block -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-