public class BlockExpEvent extends BlockEvent
Event.Result
block
Constructor and Description |
---|
BlockExpEvent(@NotNull Block block,
int exp) |
Modifier and Type | Method and Description |
---|---|
int |
getExpToDrop()
Get the experience dropped by the block after the event has processed
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
void |
setExpToDrop(int exp)
Set the amount of experience dropped by the block after the event has
processed
|
getBlock
callEvent, getEventName, isAsynchronous
public int getExpToDrop()
public void setExpToDrop(int exp)
exp
- 1 or higher to drop experience, else nothing will drop@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.