Package net.glowstone.constants
Class GlowStatistic
java.lang.Object
net.glowstone.constants.GlowStatistic
Name mappings for statistics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCategoryId
(org.bukkit.Statistic statistic) Gets the protocol ID of the category of the given statistic.static String
getName
(org.bukkit.Statistic stat) Get the statistic name for a specified Statistic.static String
getName
(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType) Get the statistic name for a specified Statistic and EntityType.static String
getName
(org.bukkit.Statistic stat, org.bukkit.Material material) Get the statistic name for a specified Statistic and Material.static int
getStatisticId
(org.bukkit.Statistic statistic) Gets the protocol ID of the given statistic within its category.
-
Method Details
-
getName
Get the statistic name for a specified Statistic.- Parameters:
stat
- the Statistic.- Returns:
- the statistic name.
-
getName
Get the statistic name for a specified Statistic and Material.- Parameters:
stat
- the Statisticmaterial
- the Material- Returns:
- the statistic name
-
getName
Get the statistic name for a specified Statistic and EntityType.- Parameters:
stat
- the StatisticentityType
- the EntityType- Returns:
- the statistic name
-
getCategoryId
public static int getCategoryId(org.bukkit.Statistic statistic) Gets the protocol ID of the category of the given statistic.- Parameters:
statistic
- the statistic- Returns:
- the protocol ID of the category of the given statistic.
-
getStatisticId
public static int getStatisticId(org.bukkit.Statistic statistic) Gets the protocol ID of the given statistic within its category.- Parameters:
statistic
- the statistic- Returns:
- the protocol ID of the statistic within its category
-