类 BlockExpEvent

直接已知子类:
BlockBreakEvent, FurnaceExtractEvent

public class BlockExpEvent extends BlockEvent
方块产生经验的时候(比如煤矿被被打破会掉落经验)时触发.
  • 构造器详细资料

    • BlockExpEvent

      public BlockExpEvent(Block block, int exp)
  • 方法详细资料

    • getExpToDrop

      public int getExpToDrop()
      在事件被执行之后获取方块掉落的经验.

      原文:Get the experience dropped by the block after the event has processed

      返回:
      方块掉落的经验
    • setExpToDrop

      public void setExpToDrop(int exp)
      设置这个方块在事件被执行之后会掉落多少经验.

      原文:Set the amount of experience dropped by the block after the event has processed

      参数:
      exp - 应该比1多,否则啥也不会掉落
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()