Package dev.deepcore.challenge
Enum Class ChallengeComponent
- All Implemented Interfaces:
Serializable,Comparable<ChallengeComponent>,Constable
Individual challenge mechanic toggles that can be enabled or disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShrink available inventory capacity over time.Enable hardcore life mode semantics.Allow natural health regeneration.Start each life at half a heart.Keep inventory contents after player death.Share health pool across participants.Share inventory state across participants. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ChallengeComponent> key()static ChallengeComponentReturns the enum constant of this class with the specified name.static ChallengeComponent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEEP_INVENTORY
Keep inventory contents after player death. -
HARDCORE
Enable hardcore life mode semantics. -
HEALTH_REFILL
Allow natural health regeneration. -
SHARED_INVENTORY
Share inventory state across participants. -
SHARED_HEALTH
Share health pool across participants. -
INITIAL_HALF_HEART
Start each life at half a heart. -
DEGRADING_INVENTORY
Shrink available inventory capacity over time.
-
-
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
-
key
-
displayName
-
fromKey
-