|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.ProjectileHitEvent
org.bukkit.event.entity.ExpBottleEvent
public class ExpBottleEvent
Called when a ThrownExpBottle hits and releases 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.entity.EntityEvent |
|---|
entity |
| Constructor Summary | |
|---|---|
ExpBottleEvent(ThrownExpBottle bottle,
int exp)
|
|
| Method Summary | |
|---|---|
ThrownExpBottle |
getEntity()
Returns the Entity involved in this event |
int |
getExperience()
This method retrieves the amount of experience to be created. |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
boolean |
getShowEffect()
This method indicates if the particle effect should be shown. |
void |
setExperience(int exp)
This method sets the amount of experience to be created. |
void |
setShowEffect(boolean showEffect)
This method sets if the particle effect will be shown. |
| Methods inherited from class org.bukkit.event.entity.EntityEvent |
|---|
getEntityType |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpBottleEvent(ThrownExpBottle bottle,
int exp)
| Method Detail |
|---|
public ThrownExpBottle getEntity()
EntityEvent
getEntity in class ProjectileHitEventpublic boolean getShowEffect()
public void setShowEffect(boolean showEffect)
This does not change the experience created.
showEffect - true indicates the effect will be shown, false
indicates no effect will be shownpublic int getExperience()
The number indicates a total amount to be divided into orbs.
public void setExperience(int exp)
The number indicates a total amount to be divided into orbs.
exp - the total amount of experience to be createdpublic HandlerList getHandlers()
getHandlers in class ProjectileHitEventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||