Package org.bukkit.event.entity
Class ExpBottleEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.ProjectileHitEvent
org.bukkit.event.entity.ExpBottleEvent
- All Implemented Interfaces:
- Cancellable
Called when a ThrownExpBottle hits and releases experience.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the Entity involved in this eventintThis method retrieves the amount of experience to be created.static HandlerListbooleanThis method indicates if the particle effect should be shown.voidsetExperience(int exp) This method sets the amount of experience to be created.voidsetShowEffect(boolean showEffect) This method sets if the particle effect will be shown.Methods inherited from class org.bukkit.event.entity.ProjectileHitEventgetHitBlock, getHitBlockFace, getHitEntity, isCancelled, setCancelledMethods inherited from class org.bukkit.event.entity.EntityEventgetEntityTypeMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
ExpBottleEvent
 
- 
- 
Method Details- 
getEntityDescription copied from class:EntityEventReturns the Entity involved in this event- Overrides:
- getEntityin class- ProjectileHitEvent
- Returns:
- Entity who is involved in this event
 
- 
getShowEffectpublic boolean getShowEffect()This method indicates if the particle effect should be shown.- Returns:
- true if the effect will be shown, false otherwise
 
- 
setShowEffectpublic void setShowEffect(boolean showEffect) This method sets if the particle effect will be shown.This does not change the experience created. - Parameters:
- showEffect- true indicates the effect will be shown, false indicates no effect will be shown
 
- 
getExperiencepublic int getExperience()This method retrieves the amount of experience to be created.The number indicates a total amount to be divided into orbs. - Returns:
- the total amount of experience to be created
 
- 
setExperiencepublic void setExperience(int exp) This method sets the amount of experience to be created.The number indicates a total amount to be divided into orbs. - Parameters:
- exp- the total amount of experience to be created
 
- 
getHandlers- Overrides:
- getHandlersin class- ProjectileHitEvent
 
- 
getHandlerList
 
-