Enum APIPlatform

    • Enum Constant Detail

      • 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.)
      • 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 Detail

      • values

        public static APIPlatform[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (APIPlatform c : APIPlatform.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static APIPlatform valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null