Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.entity.ExpBottleEvent Class Reference

Called when a ThrownExpBottle hits and releases experience. More...

+ Inheritance diagram for org.bukkit.event.entity.ExpBottleEvent:
+ Collaboration diagram for org.bukkit.event.entity.ExpBottleEvent:

Public Member Functions

 ExpBottleEvent (final ThrownExpBottle bottle, final int exp)
 
ThrownExpBottle getEntity ()
 
boolean getShowEffect ()
 This method indicates if the particle effect should be shown.
 
void setShowEffect (final boolean showEffect)
 This method sets if the particle effect will be shown.
 
int getExperience ()
 This method retrieves the amount of experience to be created.
 
void setExperience (final int exp)
 This method sets the amount of experience to be created.
 
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 ()
 Returns the Entity involved in this event.
 
EntityType getEntityType ()
 Gets the EntityType of the Entity involved in this event.
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 The default constructor is defined for cleaner code.
 
 Event (boolean isAsync)
 This constructor is used to explicitly declare an event as synchronous or asynchronous.
 
String getEventName ()
 
final boolean isAsynchronous ()
 Any custom event that should not by synchronized with other events must use the specific constructor.
 

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.

Constructor & Destructor Documentation

org.bukkit.event.entity.ExpBottleEvent.ExpBottleEvent ( final ThrownExpBottle  bottle,
final int  exp 
)

Definition at line 14 of file ExpBottleEvent.java.

Member Function Documentation

ThrownExpBottle org.bukkit.event.entity.ExpBottleEvent.getEntity ( )

Definition at line 20 of file ExpBottleEvent.java.

References org.bukkit.event.entity.EntityEvent.entity.

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 48 of file ExpBottleEvent.java.

static HandlerList org.bukkit.event.entity.ExpBottleEvent.getHandlerList ( )
static

Definition at line 66 of file ExpBottleEvent.java.

HandlerList org.bukkit.event.entity.ExpBottleEvent.getHandlers ( )
virtual

Implements org.bukkit.event.Event.

Definition at line 62 of file ExpBottleEvent.java.

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 28 of file ExpBottleEvent.java.

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 57 of file ExpBottleEvent.java.

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 39 of file ExpBottleEvent.java.


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