public class PlayerStatisticIncrementEvent extends PlayerEvent implements Cancellable
This event is not called for Statistic.PLAY_ONE_TICK or
movement based statistics.
Event.Result| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Statistic |
statistic |
player| コンストラクタと説明 |
|---|
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) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
getPlayergetEventName, isAsynchronousprotected final Statistic statistic
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue)
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, EntityType entityType)
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()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.