Contents
Enum Class CaveYawMode
- All Implemented Interfaces:
Serializable, Comparable<CaveYawMode>, Constable
Utility for handling how the yaw angle for a child cave-node is determined when
its parent is a
PrefabCaveNodeShape which may have been rotated by a
PrefabRotation.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns the parent node's yaw, ignoring itsPrefabRotation.Returns the parent node'sPrefabRotationangle, ignoring its yaw.Returns the sum of the parent node's yaw and itsPrefabRotationangle. -
Method Summary
Modifier and TypeMethodDescriptionabstract floatcombine(float parentYaw, PrefabRotation parentRotation) Combines the parent cave-node's yaw and rotation into a new angle for a child cave-node to inherit.static CaveYawModeReturns the enum constant of this class with the specified name.static CaveYawMode[]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
-
NODE
Returns the parent node's yaw, ignoring itsPrefabRotation. -
SUM
Returns the sum of the parent node's yaw and itsPrefabRotationangle. -
PREFAB
Returns the parent node'sPrefabRotationangle, ignoring its yaw.
-
-
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
-
combine
Combines the parent cave-node's yaw and rotation into a new angle for a child cave-node to inherit.- Parameters:
parentYaw- The yaw of the parent cave-node.parentRotation- The rotation of the parent cave-node if it happens to be aPrefabCaveNodeShape.- Returns:
- The resulting yaw angle for a child cave-node to inherit.
-