Class BlockExpEvent

Direct Known Subclasses:
BlockBreakEvent, FurnaceExtractEvent

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

    • BlockExpEvent Link icon

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

    • getExpToDrop Link icon

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

      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 Link icon

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

      @NotNull public static HandlerList getHandlerList()