Package com.comphenix.protocol.wrappers
Class WrappedStatistic
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedStatistic
Represents a Minecraft statistics.
-
Field Summary
Fields inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
handle, handleType -
Method Summary
Modifier and TypeMethodDescriptionstatic WrappedStatisticfromHandle(Object handle) Construct a new wrapper from a given underlying statistics.static WrappedStatisticConstruct a wrapper around an existing game profile.getName()Retrieve the unique name of this statistic.toString()static Iterable<WrappedStatistic> values()Retrieve every known statistics.Methods inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
equals, getHandle, getHandleType, hashCode, setHandle
-
Method Details
-
fromHandle
Construct a new wrapper from a given underlying statistics.- Parameters:
handle- - the statistics.- Returns:
- The wrapped statistics.
-
fromName
Construct a wrapper around an existing game profile.- Parameters:
name- - statistic name.- Returns:
- The wrapped statistics, or NULL if not found.
-
values
Retrieve every known statistics.- Returns:
- Every statistics.
-
getName
Retrieve the unique name of this statistic.- Returns:
- The name.
-
toString
- Overrides:
toStringin classAbstractWrapper
-