Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.ExpBottleEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.ExpBottleEvent:
org.bukkit.event.entity.ProjectileHitEvent org.bukkit.event.entity.EntityEvent org.bukkit.event.Event

Public Member Functions

 ExpBottleEvent (final ThrownExpBottle bottle, final int exp)
 
ThrownExpBottle getEntity ()
 
boolean getShowEffect ()
 
void setShowEffect (final boolean showEffect)
 
int getExperience ()
 
void setExperience (final int exp)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.ProjectileHitEvent
 ProjectileHitEvent (final Projectile projectile)
 
Projectile getEntity ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 
- Static Public Member Functions inherited from org.bukkit.event.entity.ProjectileHitEvent
static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when a ThrownExpBottle hits and releases experience.

Definition at line 9 of file ExpBottleEvent.java.

Member Function Documentation

int org.bukkit.event.entity.ExpBottleEvent.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

Definition at line 52 of file ExpBottleEvent.java.

52  {
53  return exp;
54  }
boolean org.bukkit.event.entity.ExpBottleEvent.getShowEffect ( )

This method indicates if the particle effect should be shown.

Returns
true if the effect will be shown, false otherwise

Definition at line 29 of file ExpBottleEvent.java.

29  {
30  return this.showEffect;
31  }
void org.bukkit.event.entity.ExpBottleEvent.setExperience ( final int  exp)

This method sets the amount of experience to be created.

The number indicates a total amount to be divided into orbs.

Parameters
expthe total amount of experience to be created

Definition at line 63 of file ExpBottleEvent.java.

63  {
64  this.exp = exp;
65  }
void org.bukkit.event.entity.ExpBottleEvent.setShowEffect ( final boolean  showEffect)

This method sets if the particle effect will be shown.

This does not change the experience created.

Parameters
showEffecttrue indicates the effect will be shown, false indicates no effect will be shown

Definition at line 41 of file ExpBottleEvent.java.

41  {
42  this.showEffect = showEffect;
43  }

The documentation for this class was generated from the following file: