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 theAndroidInstance
who triggered thisEvent
org.bukkit.block.Block
getBlock()
This method returns the minedBlock
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(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 minedBlock
android
- TheAndroidInstance
that 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 theAndroidInstance
who triggered thisEvent
- Returns:
- the involved
AndroidInstance
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-