Class WrappedStatistic

java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedStatistic

public class WrappedStatistic extends AbstractWrapper
Represents a Minecraft statistics.
  • Method Details

    • fromHandle

      public static WrappedStatistic fromHandle(Object handle)
      Construct a new wrapper from a given underlying statistics.
      Parameters:
      handle - - the statistics.
      Returns:
      The wrapped statistics.
    • fromName

      public static WrappedStatistic fromName(String name)
      Construct a wrapper around an existing game profile.
      Parameters:
      name - - statistic name.
      Returns:
      The wrapped statistics, or NULL if not found.
    • values

      public static Iterable<WrappedStatistic> values()
      Retrieve every known statistics.
      Returns:
      Every statistics.
    • getName

      public String getName()
      Retrieve the unique name of this statistic.
      Returns:
      The name.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractWrapper