Class GlowStatistic

java.lang.Object
net.glowstone.constants.GlowStatistic

public final class GlowStatistic extends Object
Name mappings for statistics.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getName

      public static String getName(org.bukkit.Statistic stat)
      Get the statistic name for a specified Statistic.
      Parameters:
      stat - the Statistic.
      Returns:
      the statistic name.
    • getName

      public static String getName(org.bukkit.Statistic stat, org.bukkit.Material material)
      Get the statistic name for a specified Statistic and Material.
      Parameters:
      stat - the Statistic
      material - the Material
      Returns:
      the statistic name
    • getName

      public static String getName(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType)
      Get the statistic name for a specified Statistic and EntityType.
      Parameters:
      stat - the Statistic
      entityType - 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