Enum SlimefunBranch

    • Enum Constant Detail

      • DEVELOPMENT

        public static final SlimefunBranch DEVELOPMENT
        This build stems from the official "development" branch, it is prefixed with DEV - X
      • STABLE

        public static final SlimefunBranch STABLE
        This build stems from the official "stable" branch, it is prefixed with RC - X
      • UNOFFICIAL

        public static final SlimefunBranch UNOFFICIAL
        This build stems from an unofficial branch, it contains the string UNOFFICIAL
      • UNKNOWN

        public static final SlimefunBranch UNKNOWN
        This build comes from any other branch. The version does not look like anything we recognize. It is definitely not an official build.
    • Method Detail

      • values

        public static SlimefunBranch[] 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 (SlimefunBranch c : SlimefunBranch.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SlimefunBranch 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
      • getName

        public String getName​()
      • isOfficial

        public boolean isOfficial​()
        This method returns whether this SlimefunBranch is considered official. Or whether it was unofficially modified.
        Returns:
        Whether this branch is an official one.