Enum Class IThirdPartyStatsListener.TpslContext.Type
java.lang.Object
java.lang.Enum<IThirdPartyStatsListener.TpslContext.Type>
io.github.thecsdev.betterstats.api.util.interfaces.IThirdPartyStatsListener.TpslContext.Type
- All Implemented Interfaces:
Serializable
,Comparable<IThirdPartyStatsListener.TpslContext.Type>
,Constable
- Enclosing interface:
IThirdPartyStatsListener.TpslContext
public static enum IThirdPartyStatsListener.TpslContext.Type
extends Enum<IThirdPartyStatsListener.TpslContext.Type>
An enum that indicates what kind of third-party statistics were received.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents a "null"-like or "unknown" value.Indicates that the third-party statistics are about a player that is present on the same server the client is connected to.Indicates that a request was made to retrieve statistics about another player present on the current server, but that other player is either offline or does not exist or does not consent to having their statistics shared. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
static final IThirdPartyStatsListener.TpslContext.Type
of
(int intValue) Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
Represents a "null"-like or "unknown" value. Used in places where actualnull
values are not allowed. -
SAME_SERVER_PLAYER
Indicates that the third-party statistics are about a player that is present on the same server the client is connected to. -
SAME_SERVER_PLAYER_NOT_FOUND
Indicates that a request was made to retrieve statistics about another player present on the current server, but that other player is either offline or does not exist or does not consent to having their statistics shared.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntValue
public final int getIntValue() -
of
-