Package net.minecraft.util.math
Enum Direction.DirectionType
- All Implemented Interfaces:
Predicate<Direction>,Serializable,Comparable<Direction.DirectionType>,java.lang.constant.Constable,Iterable<Direction>
- Enclosing class:
- Direction
public static enum Direction.DirectionType extends Enum<Direction.DirectionType> implements Predicate<Direction>, Iterable<Direction>
- Mappings:
Namespace Name official cq$cintermediary net/minecraft/class_1383$class_1386named net/minecraft/util/math/Direction$DirectionType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTALVERTICAL -
Constructor Summary
Constructors Modifier Constructor Description privateDirectionType() -
Method Summary
Modifier and Type Method Description booleanapply(Direction direction)Direction[]getDirections()DirectiongetRandomDirection(Random random)Iterator<Direction>iterator()static Direction.DirectionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Direction.DirectionType[]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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Enum Constant Details
-
HORIZONTAL
- Mappings:
Namespace Name Mixin selector official aLcq$c;a:Lcq$c;intermediary field_5830Lnet/minecraft/class_1383$class_1386;field_5830:Lnet/minecraft/class_1383$class_1386;named HORIZONTALLnet/minecraft/util/math/Direction$DirectionType;HORIZONTAL:Lnet/minecraft/util/math/Direction$DirectionType;
-
VERTICAL
- Mappings:
Namespace Name Mixin selector official bLcq$c;b:Lcq$c;intermediary field_5831Lnet/minecraft/class_1383$class_1386;field_5831:Lnet/minecraft/class_1383$class_1386;named VERTICALLnet/minecraft/util/math/Direction$DirectionType;VERTICAL:Lnet/minecraft/util/math/Direction$DirectionType;
-
-
Constructor Details
-
DirectionType
private DirectionType()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDirections
- Mappings:
Namespace Name Mixin selector official aLcq$c;a()[Lcq;intermediary method_4940Lnet/minecraft/class_1383$class_1386;method_4940()[Lnet/minecraft/class_1383;named getDirectionsLnet/minecraft/util/math/Direction$DirectionType;getDirections()[Lnet/minecraft/util/math/Direction;
-
getRandomDirection
- Mappings:
Namespace Name Mixin selector official aLcq$c;a(Ljava/util/Random;)Lcq;intermediary method_4942Lnet/minecraft/class_1383$class_1386;method_4942(Ljava/util/Random;)Lnet/minecraft/class_1383;named getRandomDirectionLnet/minecraft/util/math/Direction$DirectionType;getRandomDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
-
apply
- Specified by:
applyin interfacePredicate<Direction>- Mappings:
Namespace Name Mixin selector official aLcq$c;a(Lcq;)Zintermediary method_4941Lnet/minecraft/class_1383$class_1386;method_4941(Lnet/minecraft/class_1383;)Znamed applyLnet/minecraft/util/math/Direction$DirectionType;apply(Lnet/minecraft/util/math/Direction;)Z
-
iterator
- Specified by:
iteratorin interfaceIterable<Direction>- Mappings:
Namespace Name Mixin selector official iteratorLcq$c;iterator()Ljava/util/Iterator;intermediary iteratorLnet/minecraft/class_1383$class_1386;iterator()Ljava/util/Iterator;named iteratorLnet/minecraft/util/math/Direction$DirectionType;iterator()Ljava/util/Iterator;
-