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.
  • Enum Constant Details

    • NULL

      Represents a "null"-like or "unknown" value. Used in places where actual null values are not allowed.
    • SAME_SERVER_PLAYER

      public static final IThirdPartyStatsListener.TpslContext.Type 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

      public static final IThirdPartyStatsListener.TpslContext.Type 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

      public static IThirdPartyStatsListener.TpslContext.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIntValue

      public final int getIntValue()
    • of

      public static final IThirdPartyStatsListener.TpslContext.Type of(int intValue)