Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
ExpBottleEvent.java
Go to the documentation of this file.
1
package
org.bukkit.event.entity;
2
3
import
org.bukkit.entity.ThrownExpBottle;
4
import
org.bukkit.event.HandlerList;
5
9
public
class
ExpBottleEvent
extends
ProjectileHitEvent
{
10
private
static
final
HandlerList
handlers =
new
HandlerList
();
11
private
int
exp;
12
private
boolean
showEffect =
true
;
13
14
public
ExpBottleEvent
(
final
ThrownExpBottle
bottle,
final
int
exp) {
15
super(bottle);
16
this.exp = exp;
17
}
18
19
@Override
20
public
ThrownExpBottle
getEntity
() {
21
return
(
ThrownExpBottle
)
entity
;
22
}
23
28
public
boolean
getShowEffect
() {
29
return
this.showEffect;
30
}
31
39
public
void
setShowEffect
(
final
boolean
showEffect) {
40
this.showEffect = showEffect;
41
}
42
48
public
int
getExperience
() {
49
return
exp;
50
}
51
57
public
void
setExperience
(
final
int
exp) {
58
this.exp = exp;
59
}
60
61
@Override
62
public
HandlerList
getHandlers
() {
63
return
handlers;
64
}
65
66
public
static
HandlerList
getHandlerList
() {
67
return
handlers;
68
}
69
}
org
bukkit
event
entity
ExpBottleEvent.java
Generated on Sun May 19 2013 21:16:43 for Bukkit by
1.8.2