Package org.bukkit.event.block
Class BlockExpEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockExpEvent
- Direct Known Subclasses:
BlockBreakEvent,FurnaceExtractEvent
An event that's called when a block yields experience.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the experience dropped by the block after the event has processedstatic HandlerListvoidsetExpToDrop(int exp) Set the amount of experience dropped by the block after the event has processedMethods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BlockExpEvent
-
-
Method Details
-
getExpToDrop
public int getExpToDrop()Get the experience dropped by the block after the event has processed- Returns:
- The experience to drop
-
setExpToDrop
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
- Specified by:
getHandlersin classEvent
-
getHandlerList
-