Class AndroidMineEvent

  • All Implemented Interfaces:
    Cancellable


    public class AndroidMineEvent
    extends Event
    implements Cancellable
    This event is fired before a miner android mines a block. If this event is cancelled, the block will not be mined.
    Author:
    poma123
    • Constructor Detail

      • AndroidMineEvent

        public AndroidMineEvent​(Block block,
                                AndroidInstance android)
        Parameters:
        block - - mined block
        android - - the block of the android
    • Method Detail

      • getHandlerList

        public static HandlerList getHandlerList​()
      • getBlock

        public Block getBlock​()
        This method returns the mined block
        Returns:
        the mined block
      • getAndroid

        public AndroidInstance getAndroid​()
        This method returns the block of the android who wants to mine a block.
        Returns:
        the block of the android
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface Cancellable