Class AndroidMineEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AndroidMineEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AndroidMineEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
This
Event is fired before a MinerAndroid mines a Block.
If this Event is cancelled, the Block will not be mined.- Author:
- poma123
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns theAndroidInstancewho triggered thisEventorg.bukkit.block.BlockgetBlock()This method returns the minedBlockstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListbooleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AndroidMineEvent
@ParametersAreNonnullByDefault public AndroidMineEvent(org.bukkit.block.Block block, AndroidInstance android) - Parameters:
block- The minedBlockandroid- TheAndroidInstancethat triggered thisEvent
-
-
Method Details
-
getBlock
@Nonnull public org.bukkit.block.Block getBlock()This method returns the minedBlock- Returns:
- the mined
Block
-
getAndroid
This method returns theAndroidInstancewho triggered thisEvent- Returns:
- the involved
AndroidInstance
-
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
-