BlockExpEvent
BlockExpEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.block.BlockExpEvent
An event that's called when a block yields experience.当方块产出经验时触发。
方法声明: public int getExpToDrop()
方法签名: ()I
Get the experience dropped by the block after the event has processed@return The experience to drop该方法用于获取涉事方块将会掉落的经验数量。@return 涉事方块将会掉落的经验数量。
方法声明: public void setExpToDrop(int exp)
方法签名: (I)V
Set the amount of experience dropped by the block after the event hasprocessed@param exp 1 or higher to drop experience, else nothing will drop该方法用于设置涉事方块将会掉落的经验数量。@param exp 如传入大于等于一的值则会掉落相应数量的经验,否则不会掉落任何经验。
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago