Package net.minecraft.util.math
Enum Class Direction
- All Implemented Interfaces:
Serializable,Comparable<Direction>,Constable
- Mappings:
Namespace Name official cqintermediary net/minecraft/class_1354named net/minecraft/util/math/Direction
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDirection(int id, int opposite, int offsetX, int offsetY, int offsetZ) -
Method Summary
-
Enum Constant Details
-
DOWN
- Mappings:
Namespace Name Mixin selector official aLcq;a:Lcq;intermediary field_5200Lnet/minecraft/class_1354;field_5200:Lnet/minecraft/class_1354;named DOWNLnet/minecraft/util/math/Direction;DOWN:Lnet/minecraft/util/math/Direction;
-
UP
- Mappings:
Namespace Name Mixin selector official bLcq;b:Lcq;intermediary field_5201Lnet/minecraft/class_1354;field_5201:Lnet/minecraft/class_1354;named UPLnet/minecraft/util/math/Direction;UP:Lnet/minecraft/util/math/Direction;
-
NORTH
- Mappings:
Namespace Name Mixin selector official cLcq;c:Lcq;intermediary field_5202Lnet/minecraft/class_1354;field_5202:Lnet/minecraft/class_1354;named NORTHLnet/minecraft/util/math/Direction;NORTH:Lnet/minecraft/util/math/Direction;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official dLcq;d:Lcq;intermediary field_5203Lnet/minecraft/class_1354;field_5203:Lnet/minecraft/class_1354;named SOUTHLnet/minecraft/util/math/Direction;SOUTH:Lnet/minecraft/util/math/Direction;
-
EAST
- Mappings:
Namespace Name Mixin selector official eLcq;e:Lcq;intermediary field_5204Lnet/minecraft/class_1354;field_5204:Lnet/minecraft/class_1354;named EASTLnet/minecraft/util/math/Direction;EAST:Lnet/minecraft/util/math/Direction;
-
WEST
- Mappings:
Namespace Name Mixin selector official fLcq;f:Lcq;intermediary field_5205Lnet/minecraft/class_1354;field_5205:Lnet/minecraft/class_1354;named WESTLnet/minecraft/util/math/Direction;WEST:Lnet/minecraft/util/math/Direction;
-
-
Field Details
-
ALL
- Mappings:
Namespace Name Mixin selector official lLcq;l:[Lcq;intermediary field_5211Lnet/minecraft/class_1354;field_5211:[Lnet/minecraft/class_1354;named ALLLnet/minecraft/util/math/Direction;ALL:[Lnet/minecraft/util/math/Direction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official gLcq;g:Iintermediary field_5206Lnet/minecraft/class_1354;field_5206:Inamed idLnet/minecraft/util/math/Direction;id:I
-
opposite
private final int opposite- Mappings:
Namespace Name Mixin selector official hLcq;h:Iintermediary field_5207Lnet/minecraft/class_1354;field_5207:Inamed oppositeLnet/minecraft/util/math/Direction;opposite:I
-
offsetX
private final int offsetX- Mappings:
Namespace Name Mixin selector official iLcq;i:Iintermediary field_5208Lnet/minecraft/class_1354;field_5208:Inamed offsetXLnet/minecraft/util/math/Direction;offsetX:I
-
offsetY
private final int offsetY- Mappings:
Namespace Name Mixin selector official jLcq;j:Iintermediary field_5209Lnet/minecraft/class_1354;field_5209:Inamed offsetYLnet/minecraft/util/math/Direction;offsetY:I
-
offsetZ
private final int offsetZ- Mappings:
Namespace Name Mixin selector official kLcq;k:Iintermediary field_5210Lnet/minecraft/class_1354;field_5210:Inamed offsetZLnet/minecraft/util/math/Direction;offsetZ:I
-
-
Constructor Details
-
Direction
private Direction(int id, int opposite, int offsetX, int offsetY, int offsetZ) - Mappings:
Namespace Name Mixin selector official <init>Lcq;<init>(Ljava/lang/String;IIIIII)Vintermediary <init>Lnet/minecraft/class_1354;<init>(Ljava/lang/String;IIIIII)Vnamed <init>Lnet/minecraft/util/math/Direction;<init>(Ljava/lang/String;IIIIII)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getOffsetX
public int getOffsetX()- Mappings:
Namespace Name Mixin selector official cLcq;c()Iintermediary method_4347Lnet/minecraft/class_1354;method_4347()Inamed getOffsetXLnet/minecraft/util/math/Direction;getOffsetX()I
-
getOffsetY
public int getOffsetY()- Mappings:
Namespace Name Mixin selector official dLcq;d()Iintermediary method_5134Lnet/minecraft/class_1354;method_5134()Inamed getOffsetYLnet/minecraft/util/math/Direction;getOffsetY()I
-
getOffsetZ
public int getOffsetZ()- Mappings:
Namespace Name Mixin selector official eLcq;e()Iintermediary method_4348Lnet/minecraft/class_1354;method_4348()Inamed getOffsetZLnet/minecraft/util/math/Direction;getOffsetZ()I
-
getById
- Mappings:
Namespace Name Mixin selector official aLcq;a(I)Lcq;intermediary method_4346Lnet/minecraft/class_1354;method_4346(I)Lnet/minecraft/class_1354;named getByIdLnet/minecraft/util/math/Direction;getById(I)Lnet/minecraft/util/math/Direction;
-