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
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns theAndroidInstance
who triggered thisEvent
getBlock()
This method returns the minedBlock
static HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AndroidMineEvent
- Parameters:
block
- The minedBlock
android
- TheAndroidInstance
that triggered thisEvent
-
-
Method Details
-
getBlock
This method returns the minedBlock
- Returns:
- the mined
Block
-
getAndroid
This method returns theAndroidInstance
who triggered thisEvent
- Returns:
- the involved
AndroidInstance
-
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
-