Class BlockEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
Direct Known Subclasses:
BellResonateEvent, BellRingEvent, BlockBurnEvent, BlockCanBuildEvent, BlockCookEvent, BlockDamageAbortEvent, BlockDamageEvent, BlockDispenseEvent, BlockDispenseLootEvent, BlockDropItemEvent, BlockExpEvent, BlockExplodeEvent, BlockFadeEvent, BlockFertilizeEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPlaceEvent, BlockReceiveGameEvent, BlockRedstoneEvent, BlockShearEntityEvent, BrewEvent, BrewingStandFuelEvent, CauldronLevelChangeEvent, CrafterCraftEvent, FluidLevelChangeEvent, FurnaceBurnEvent, HopperInventorySearchEvent, InventoryBlockStartEvent, LeavesDecayEvent, MoistureChangeEvent, NotePlayEvent, SculkBloomEvent, SignChangeEvent, SpongeAbsorbEvent, TNTPrimeEvent, VaultDisplayItemEvent

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

    • block

      protected Block block
  • Constructor Details

    • BlockEvent

      public BlockEvent(@NotNull Block theBlock)
  • Method Details

    • getBlock

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