Enum Class SlimefunBranch

java.lang.Object
java.lang.Enum<SlimefunBranch>
io.github.thebusybiscuit.slimefun4.api.SlimefunBranch
All Implemented Interfaces:
Serializable, Comparable<SlimefunBranch>, Constable

public enum SlimefunBranch extends Enum<SlimefunBranch>
This enum represents the branch this Slimefun build is on. development or stable, unofficial or even unknown.
Author:
TheBusyBiscuit
  • Enum Constant Details

    • 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 Details

    • values

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

      @Nonnull public String getName()
      This returns the name of this SlimefunBranch. The name is just a more readable version of the enum constant.
      Returns:
      The name of this SlimefunBranch
    • 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.