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
ConstructorsConstructorDescriptionExplosiveToolBreakBlocksEvent(Player player, Block block, List<Block> blocks, ItemStack item, ExplosiveTool explosiveTool) -
Method Summary
Modifier and TypeMethodDescriptionGets theExplosiveToolwhich triggered this eventstatic HandlerListGets theItemStackof the tool used to destroy this blockThis returns the primaryBlockthat was broken.booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ExplosiveToolBreakBlocksEvent
-
-
Method Details
-
getPrimaryBlock
This returns the primaryBlockthat was broken. ThisBlocktriggered thisEventand is not included ingetAdditionalBlocks().- Returns:
- The primary broken
Block
-
getAdditionalBlocks
- Returns:
- The broken blocks
-
getExplosiveTool
Gets theExplosiveToolwhich triggered this event- Returns:
- the
ExplosiveToolthat was involved
-
getItemInHand
Gets theItemStackof the tool used to destroy this block -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-