Package net.glowstone.util
Class StatisticMap
java.lang.Object
net.glowstone.util.StatisticMap
A container for statistic tracking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.bukkit.Statistic stat, int modify) voidadd(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int modify) Increment the given Statistic for the given EntityType.voidadd(org.bukkit.Statistic stat, org.bukkit.Material material, int modify) Increment the given Statistic for the given Material.intget(org.bukkit.Statistic stat) intget(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType) intget(org.bukkit.Statistic stat, org.bukkit.Material material) voidset(org.bukkit.Statistic stat, int value) voidset(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int value) voidset(org.bukkit.Statistic stat, org.bukkit.Material material, int value)
-
Constructor Details
-
StatisticMap
public StatisticMap()
-
-
Method Details
-
toMessage
-
get
public int get(org.bukkit.Statistic stat) -
get
public int get(org.bukkit.Statistic stat, org.bukkit.Material material) -
get
public int get(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType) -
set
public void set(org.bukkit.Statistic stat, int value) -
set
public void set(org.bukkit.Statistic stat, org.bukkit.Material material, int value) -
set
public void set(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int value) -
add
public void add(org.bukkit.Statistic stat, int modify) -
add
public void add(org.bukkit.Statistic stat, org.bukkit.Material material, int modify) Increment the given Statistic for the given Material.- Parameters:
stat- the Statisticmaterial- the Materialmodify- the amount to add
-
add
public void add(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int modify) Increment the given Statistic for the given EntityType.- Parameters:
stat- the StatisticentityType- the EntityTypemodify- the amount to add
-
getValues
-