Enum Class APIPlatform

java.lang.Object
java.lang.Enum<APIPlatform>
com.lahuca.botsentry.api.APIPlatform
All Implemented Interfaces:
Serializable, Comparable<APIPlatform>, Constable

public enum APIPlatform extends Enum<APIPlatform>
Enum for the platforms the API can run on.
See Also:
  • Enum Constant Details

    • BUNGEECORD

      public static final APIPlatform BUNGEECORD
      Value for BungeeCord like systems (Waterfall, FlameCord, etc.)
    • SPIGOT

      public static final APIPlatform SPIGOT
      Value for Spigot like systems (Paper, etc.)
    • VELOCITY

      public static final APIPlatform VELOCITY
      Value for Velocity like systems (Velocity Powered, etc.)
    • SPONGE

      public static final APIPlatform SPONGE
      Value for Sponge like systems (SpongeVanilla, SpongeForge, etc.)
    • UNKNOWN

      public static final APIPlatform UNKNOWN
      Value to be used when API is not familiar with a platform a newer version can have. Value is there to make it possible for the "older" API to work for later versions.
  • Method Details

    • values

      public static APIPlatform[] 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 APIPlatform 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