Enum Class CaveYawMode

java.lang.Object
java.lang.Enum<CaveYawMode>
com.hypixel.hytale.server.worldgen.cave.CaveYawMode
All Implemented Interfaces:
Serializable, Comparable<CaveYawMode>, Constable

public enum CaveYawMode extends Enum<CaveYawMode>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static CaveYawMode[] 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

      public static CaveYawMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • combine

      public abstract float combine(float parentYaw, @Nullable PrefabRotation parentRotation)
      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 a PrefabCaveNodeShape.
      Returns:
      The resulting yaw angle for a child cave-node to inherit.