public enum SlimefunBranch extends java.lang.Enum<SlimefunBranch>
Enum Constant and Description |
---|
DEVELOPMENT
This build stems from the official "development" branch, it is prefixed with
DEV - X |
STABLE
This build stems from the official "stable" branch, it is prefixed with
RC - X |
UNKNOWN
This build comes from any other branch.
|
UNOFFICIAL
This build stems from an unofficial branch, it contains the string
UNOFFICIAL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isOfficial()
This method returns whether this
SlimefunBranch is considered official. |
static SlimefunBranch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SlimefunBranch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SlimefunBranch DEVELOPMENT
DEV - X
public static final SlimefunBranch STABLE
RC - X
public static final SlimefunBranch UNOFFICIAL
UNOFFICIAL
public static final SlimefunBranch UNKNOWN
public static SlimefunBranch[] values()
for (SlimefunBranch c : SlimefunBranch.values()) System.out.println(c);
public static SlimefunBranch valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public boolean isOfficial()
SlimefunBranch
is considered official.
Or whether it was unofficially modified.