Class BlockEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
Direct Known Subclasses:
BlockBurnEvent, BlockCanBuildEvent, BlockDamageEvent, BlockDispenseEvent, BlockExpEvent, BlockExplodeEvent, BlockFadeEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPlaceEvent, BlockRedstoneEvent, BrewEvent, FurnaceBurnEvent, FurnaceSmeltEvent, LeavesDecayEvent, NotePlayEvent, SignChangeEvent

public abstract class BlockEvent
extends Event
Represents a block related event.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    Event.Result
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Block block  
  • Constructor Summary

    Constructors 
    Constructor Description
    BlockEvent​(Block theBlock)  
  • Method Summary

    Modifier and Type Method Description
    Block getBlock()
    Gets the block involved in this event.

    Methods inherited from class org.bukkit.event.Event

    getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getBlock

      public final Block getBlock()
      Gets the block involved in this event.
      Returns:
      The Block which block is involved in this event