Class BlockEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
Direct Known Subclasses:
BeaconActivatedEvent, BeaconDeactivatedEvent, BeaconEffectEvent, BellResonateEvent, BellRevealRaiderEvent, BellRingEvent, BlockBreakBlockEvent, BlockBurnEvent, BlockCanBuildEvent, BlockCookEvent, BlockDamageAbortEvent, BlockDamageEvent, BlockDestroyEvent, BlockDispenseEvent, BlockDropItemEvent, BlockExpEvent, BlockExplodeEvent, BlockFadeEvent, BlockFailedDispenseEvent, BlockFertilizeEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockLockCheckEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPlaceEvent, BlockPreDispenseEvent, BlockReceiveGameEvent, BlockRedstoneEvent, BlockShearEntityEvent, BrewEvent, BrewingStandFuelEvent, CauldronLevelChangeEvent, CompostItemEvent, FluidLevelChangeEvent, FurnaceBurnEvent, HopperInventorySearchEvent, InventoryBlockStartEvent, LeavesDecayEvent, MoistureChangeEvent, NotePlayEvent, SignChangeEvent, SpongeAbsorbEvent, TNTPrimeEvent, TNTPrimeEvent

public abstract class BlockEvent extends Event
Represents a block related event.
  • Field Details

    • block

      protected Block block
  • Constructor Details

  • Method Details

    • getBlock

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