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
 
 public class BlockExpEvent extends BlockEvent An event that's called when a block yields experience.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
 
- 
 - 
Field Summary- 
Fields inherited from class org.bukkit.event.block.BlockEventblock
 
- 
 - 
Constructor SummaryConstructors Constructor Description BlockExpEvent(Block block, int exp)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExpToDrop()Get the experience dropped by the block after the event has processedstatic HandlerListgetHandlerList()HandlerListgetHandlers()voidsetExpToDrop(int exp)Set the amount of experience dropped by the block after the event has processed- 
Methods inherited from class org.bukkit.event.block.BlockEventgetBlock
 - 
Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
 
- 
 
- 
- 
- 
Constructor Detail- 
BlockExpEventpublic BlockExpEvent(@NotNull Block block, int exp)
 
- 
 - 
Method Detail- 
getExpToDroppublic int getExpToDrop() Get the experience dropped by the block after the event has processed- Returns:
- The experience to drop
 
 - 
setExpToDroppublic 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@NotNull public HandlerList getHandlers() - Specified by:
- getHandlersin class- Event
 
 - 
getHandlerList@NotNull public static HandlerList getHandlerList() 
 
- 
 
-