public class BlockExpEvent extends BlockEvent
Event.Result
block
构造器和说明 |
---|
BlockExpEvent(Block block,
int exp) |
限定符和类型 | 方法和说明 |
---|---|
int |
getExpToDrop()
在事件被执行之后获取方块掉落的经验.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
void |
setExpToDrop(int exp)
设置这个方块在事件被执行之后会掉落多少经验.
|
getBlock
getEventName, isAsynchronous
public BlockExpEvent(Block block, int exp)
public int getExpToDrop()
原文:Get the experience dropped by the block after the event has processed
public void setExpToDrop(int exp)
原文:Set the amount of experience dropped by the block after the event has processed
exp
- 应该比1多,否则啥也不会掉落public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()