Enum Class SlimefunBranch
- All Implemented Interfaces:
Serializable
,Comparable<SlimefunBranch>
,Constable
This enum represents the branch this Slimefun build is on.
development or stable, unofficial or even unknown.
- Author:
- TheBusyBiscuit
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis build stems from the official "development" branch, it is prefixed withDEV - X
This build stems from the official "stable" branch, it is prefixed withRC - X
This build comes from any other branch.This build stems from an unofficial branch, it contains the stringUNOFFICIAL
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
This returns the name of thisSlimefunBranch
.boolean
This method returns whether thisSlimefunBranch
is considered official.static SlimefunBranch
Returns the enum constant of this class with the specified name.static SlimefunBranch[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
-
UNOFFICIAL
This build stems from an unofficial branch, it contains the stringUNOFFICIAL
-
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
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
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 nameNullPointerException
- if the argument is null
-
getName
This returns the name of thisSlimefunBranch
. 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 thisSlimefunBranch
is considered official. Or whether it was unofficially modified.- Returns:
- Whether this branch is an official one.
-