Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerStatisticIncrementEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerStatisticIncrementEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 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)
 
Statistic getStatistic ()
 
int getPreviousValue ()
 
int getNewValue ()
 
EntityType getEntityType ()
 
Material getMaterial ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
 
final Player getPlayer ()
 
- 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 ()
 

Protected Attributes

final Statistic statistic
 
- Protected Attributes inherited from org.bukkit.event.player.PlayerEvent
Player player
 

Detailed Description

Called when a player statistic is incremented.

This event is not called for org.bukkit.Statistic#PLAY_ONE_TICK or movement based statistics.

Definition at line 17 of file PlayerStatisticIncrementEvent.java.

Member Function Documentation

EntityType org.bukkit.event.player.PlayerStatisticIncrementEvent.getEntityType ( )

Gets the EntityType if getStatistic() is an entity statistic otherwise returns null.

Returns
the EntityType of the statistic

Definition at line 86 of file PlayerStatisticIncrementEvent.java.

86  {
87  return entityType;
88  }
Material org.bukkit.event.player.PlayerStatisticIncrementEvent.getMaterial ( )

Gets the Material if getStatistic() is a block or item statistic otherwise returns null.

Returns
the Material of the statistic

Definition at line 96 of file PlayerStatisticIncrementEvent.java.

96  {
97  return material;
98  }
int org.bukkit.event.player.PlayerStatisticIncrementEvent.getNewValue ( )

Gets the new value of the statistic.

Returns
the new value of the statistic

Definition at line 76 of file PlayerStatisticIncrementEvent.java.

76  {
77  return newValue;
78  }
int org.bukkit.event.player.PlayerStatisticIncrementEvent.getPreviousValue ( )

Gets the previous value of the statistic.

Returns
the previous value of the statistic

Definition at line 67 of file PlayerStatisticIncrementEvent.java.

67  {
68  return initialValue;
69  }
Statistic org.bukkit.event.player.PlayerStatisticIncrementEvent.getStatistic ( )

Gets the statistic that is being incremented.

Returns
the incremented statistic

Definition at line 58 of file PlayerStatisticIncrementEvent.java.

58  {
59  return statistic;
60  }
boolean org.bukkit.event.player.PlayerStatisticIncrementEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 100 of file PlayerStatisticIncrementEvent.java.

void org.bukkit.event.player.PlayerStatisticIncrementEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 104 of file PlayerStatisticIncrementEvent.java.


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