Class AndroidMineEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AndroidMineEvent
- All Implemented Interfaces:
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
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns theAndroidInstancewho triggered thisEventgetBlock()This method returns the minedBlockstatic HandlerListbooleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AndroidMineEvent
- Parameters:
block- The minedBlockandroid- TheAndroidInstancethat triggered thisEvent
-
-
Method Details
-
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 interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-