Class StatisticMap

java.lang.Object
net.glowstone.util.StatisticMap

public final class StatisticMap extends Object
A container for statistic tracking.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.bukkit.Statistic stat, int modify)
     
    void
    add(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int modify)
    Increment the given Statistic for the given EntityType.
    void
    add(org.bukkit.Statistic stat, org.bukkit.Material material, int modify)
    Increment the given Statistic for the given Material.
    int
    get(org.bukkit.Statistic stat)
     
    int
    get(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType)
     
    int
    get(org.bukkit.Statistic stat, org.bukkit.Material material)
     
     
    void
    set(org.bukkit.Statistic stat, int value)
     
    void
    set(org.bukkit.Statistic stat, org.bukkit.entity.EntityType entityType, int value)
     
    void
    set(org.bukkit.Statistic stat, org.bukkit.Material material, int value)
     
     

    Methods inherited from class java.lang.Object

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

    • StatisticMap

      public StatisticMap()
  • Method Details

    • toMessage

      public StatisticsMessage 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 Statistic
      material - the Material
      modify - 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 Statistic
      entityType - the EntityType
      modify - the amount to add
    • getValues

      public Map<String,Integer> getValues()