Enum SlimefunBranch
- java.lang.Object
-
- java.lang.Enum<SlimefunBranch>
-
- io.github.thebusybiscuit.slimefun4.api.SlimefunBranch
-
- All Implemented Interfaces:
Serializable
,Comparable<SlimefunBranch>
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 Summary
Enum Constants Enum Constant Description DEVELOPMENT
This build stems from the official "development" branch, it is prefixed withDEV - X
STABLE
This build stems from the official "stable" branch, it is prefixed withRC - X
UNKNOWN
This build comes from any other branch.UNOFFICIAL
This build stems from an unofficial branch, it contains the stringUNOFFICIAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
boolean
isOfficial()
This method returns whether thisSlimefunBranch
is considered official.static SlimefunBranch
valueOf(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.
-
-
-
Enum Constant Detail
-
DEVELOPMENT
public static final SlimefunBranch DEVELOPMENT
This build stems from the official "development" branch, it is prefixed withDEV - X
-
STABLE
public static final SlimefunBranch STABLE
This build stems from the official "stable" branch, it is prefixed withRC - X
-
UNOFFICIAL
public static final SlimefunBranch UNOFFICIAL
This build stems from an unofficial branch, it contains the stringUNOFFICIAL
-
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 nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
isOfficial
public boolean isOfficial()
This method returns whether thisSlimefunBranch
is considered official. Or whether it was unofficially modified.- Returns:
- Whether this branch is an official one.
-
-