Package com.minecolonies.api.research
Enum Class ResearchBranchType
- All Implemented Interfaces:
Serializable,Comparable<ResearchBranchType>,Constable
Different Research Branch types, along with descriptions of their behaviors. Primarily related to display rendering internal to Minecolonies,
or to implementations for AbstractResearchProvider.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault branch using Tree-based view.Branch using Tree-based DragZoomView with reduced restrictions. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResearchBranchTypeReturns the enum constant of this class with the specified name.static ResearchBranchTypevalueOfTag(String tag) Get the matching enum from a string.static ResearchBranchType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default branch using Tree-based view. Enforces University Level, limits to one level-six research, shows research level headers, etc. All branches without an explicit type, or with an invalid explicit type, will act as DEFAULT. -
UNLOCKABLES
Branch using Tree-based DragZoomView with reduced restrictions. Does not enforce university level, allows multiple researches above the university's max level, does not show research level requirement in headers, does not show research level time headers if branch-time is under 0.01. This is not a replacement for vanilla advancements: use only where University behaviors are important (eg: time, item cost, parent requirement enforcement), where requirement complexity is too broad to fit the Advancement system, where exclusive branches or colony-wide announcements are required, or where requirement or reward is tied to a colony-wide behavior instead of a player-specific one.
-
-
Field Details
-
tag
The string tag representation of the Branch-Type. Used both in logic, and in datapack JSON.
-
-
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
-
valueOfTag
Get the matching enum from a string. If no matching string is found, defaults to DEFAULT- Parameters:
tag- The string representation of the BranchType- Returns:
- The enum value.
-