Enum Direction.Plane

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Plane​(Direction[] p_i49393_3_, Direction.Axis[] p_i49393_4_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Direction.Axis getRandomAxis​(java.util.Random p_244803_1_)  
      Direction getRandomDirection​(java.util.Random p_179518_1_)  
      java.util.Iterator<Direction> iterator()  
      java.util.stream.Stream<Direction> stream()  
      boolean test​(Direction p_test_1_)  
      static Direction.Plane valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Direction.Plane[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Method Detail

      • values

        public static Direction.Plane[] 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.Plane c : Direction.Plane.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.Plane 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
      • getRandomDirection

        public Direction getRandomDirection​(java.util.Random p_179518_1_)
      • getRandomAxis

        public Direction.Axis getRandomAxis​(java.util.Random p_244803_1_)
      • test

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

        public java.util.Iterator<Direction> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Direction>
      • stream

        public java.util.stream.Stream<Direction> stream()