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
  • Constructor Details

    • AndroidMineEvent

      @ParametersAreNonnullByDefault public AndroidMineEvent(org.bukkit.block.Block block, AndroidInstance android)
      Parameters:
      block - The mined Block
      android - The AndroidInstance that triggered this Event
  • Method Details

    • getBlock

      @Nonnull public org.bukkit.block.Block getBlock()
      This method returns the mined Block
      Returns:
      the mined Block
    • getAndroid

      @Nonnull public AndroidInstance getAndroid()
      This method returns the AndroidInstance who triggered this Event
      Returns:
      the involved AndroidInstance
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlerList

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event