Contents
Enum Class RelaxedConstraint
java.lang.Object
java.lang.Enum<RelaxedConstraint>
com.hypixel.hytale.server.npc.movement.constraints.RelaxedConstraint
- All Implemented Interfaces:
Serializable, Comparable<RelaxedConstraint>, Constable, Supplier<String>
Defines which movement constraints are relaxed when relaxation is enabled.
Each value independently relaxes a specific constraint.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows NPCs to move into blocks which would cause suffocation.Allows NPCs to move into or touch blocks which cause damage (e.g. lava).Allows NPCs to drop from higher than maxDropHeight even if it would cause damage.Allows NPCs to climb over fence blocks.Allows NPCs to move into liquid (water). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<RelaxedConstraint> Matches legacy "RelaxedMoveConstraints: true" behavior (movement constraints relaxed, but damage and breathing avoidance kept). -
Method Summary
Modifier and TypeMethodDescriptionget()static RelaxedConstraintReturns the enum constant of this class with the specified name.static RelaxedConstraint[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WADE
Allows NPCs to move into liquid (water). -
DAMAGE
Allows NPCs to move into or touch blocks which cause damage (e.g. lava). -
DROP
Allows NPCs to drop from higher than maxDropHeight even if it would cause damage. -
BREATHE
Allows NPCs to move into blocks which would cause suffocation. -
FENCE
Allows NPCs to climb over fence blocks.
-
-
Field Details
-
DEFAULT_WHEN_RELAXED
Matches legacy "RelaxedMoveConstraints: true" behavior (movement constraints relaxed, but damage and breathing avoidance kept). Used only in the legacy boolean mode when RelaxedConstraints is not present.
-
-
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
-
get
-