|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.player.PlayerEvent org.bukkit.event.player.PlayerStatisticIncrementEvent
public class PlayerStatisticIncrementEvent
Called when a player statistic is incremented.
This event is not called for Statistic.PLAY_ONE_TICK
or
movement based statistics.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary | |
---|---|
protected Statistic |
statistic
|
Fields inherited from class org.bukkit.event.player.PlayerEvent |
---|
player |
Constructor Summary | |
---|---|
PlayerStatisticIncrementEvent(Player player,
Statistic statistic,
int initialValue,
int newValue)
|
|
PlayerStatisticIncrementEvent(Player player,
Statistic statistic,
int initialValue,
int newValue,
EntityType entityType)
|
|
PlayerStatisticIncrementEvent(Player player,
Statistic statistic,
int initialValue,
int newValue,
Material material)
|
Method Summary | |
---|---|
EntityType |
getEntityType()
Gets the EntityType if getStatistic() is an
entity statistic otherwise returns null. |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Material |
getMaterial()
Gets the Material if getStatistic() is a block
or item statistic otherwise returns null. |
int |
getNewValue()
Gets the new value of the statistic. |
int |
getPreviousValue()
Gets the previous value of the statistic. |
Statistic |
getStatistic()
Gets the statistic that is being incremented. |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
Methods inherited from class org.bukkit.event.player.PlayerEvent |
---|
getPlayer |
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 |
Field Detail |
---|
protected final Statistic statistic
Constructor Detail |
---|
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue)
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, EntityType entityType)
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, Material material)
Method Detail |
---|
public Statistic getStatistic()
public int getPreviousValue()
public int getNewValue()
public EntityType getEntityType()
getStatistic()
is an
entity statistic otherwise returns null.
public Material getMaterial()
getStatistic()
is a block
or item statistic otherwise returns null.
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |