Enum Direction.Axis

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      X  
      Y  
      Z  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Axis​(java.lang.String p_i49394_3_)  
    • Field Detail

      • CODEC

        public static final com.mojang.serialization.Codec<Direction.Axis> CODEC
      • BY_NAME

        private static final java.util.Map<java.lang.String,​Direction.Axis> BY_NAME
      • name

        private final java.lang.String name
    • Constructor Detail

      • Axis

        private Axis​(java.lang.String p_i49394_3_)
    • Method Detail

      • values

        public static Direction.Axis[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Direction.Axis c : Direction.Axis.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Direction.Axis valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • byName

        @Nullable
        public static Direction.Axis byName​(java.lang.String p_176717_0_)
      • getName

        public java.lang.String getName()
      • isVertical

        public boolean isVertical()
      • isHorizontal

        public boolean isHorizontal()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Direction.Axis>
      • getRandom

        public static Direction.Axis getRandom​(java.util.Random p_239634_0_)
      • test

        public boolean test​(@Nullable
                            Direction p_test_1_)
        Specified by:
        test in interface java.util.function.Predicate<Direction>
      • choose

        public abstract int choose​(int p_196052_1_,
                                   int p_196052_2_,
                                   int p_196052_3_)
      • choose

        public abstract double choose​(double p_196051_1_,
                                      double p_196051_3_,
                                      double p_196051_5_)