Enum AxisCycleDirection

java.lang.Object
java.lang.Enum<AxisCycleDirection>
net.minecraft.util.math.AxisCycleDirection
All Implemented Interfaces:
Serializable, Comparable<AxisCycleDirection>, java.lang.constant.Constable

public enum AxisCycleDirection
extends Enum<AxisCycleDirection>
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • AxisCycleDirection

      private AxisCycleDirection()
  • Method Details

    • values

      public static AxisCycleDirection[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AxisCycleDirection valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • choose

      public abstract int choose​(int x, int y, int z, Direction.Axis axis)
    • cycle

      public abstract Direction.Axis cycle​(Direction.Axis axis)
    • opposite

      public abstract AxisCycleDirection opposite()
    • between

      public static AxisCycleDirection between​(Direction.Axis from, Direction.Axis to)