Class BlockExpEvent

Direct Known Subclasses:
BlockBreakEvent, FurnaceExtractEvent

public class BlockExpEvent extends BlockEvent
An event that's called when a block yields experience.
  • Constructor Details

    • BlockExpEvent

      public BlockExpEvent(@NotNull Block block, int exp)
  • Method Details

    • getExpToDrop

      public int getExpToDrop()
      Get the experience dropped by the block after the event has processed
      Returns:
      The experience to drop
    • setExpToDrop

      public void setExpToDrop(int exp)
      Set the amount of experience dropped by the block after the event has processed
      Parameters:
      exp - 1 or higher to drop experience, else nothing will drop
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()