Package net.minecraft.src
Class Direction
java.lang.Object
net.minecraft.src.Direction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[][]static final String[]static final int[]Maps a Direction value (2D) to a Facing value (3D).static final int[]Maps a Facing value (3D) to a Direction value (2D).static final int[]static final int[]static final int[]Maps a direction to that to the left of it.static final int[]Maps a direction to that opposite of it.static final int[]Maps a direction to that to the right of it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaxesMatch(int directionA, int directionB) static intgetMovementDirection(double par0, double par2) Returns the movement direction from a velocity vector.
-
Field Details
-
offsetX
public static final int[] offsetX -
offsetZ
public static final int[] offsetZ -
directions
-
directionToFacing
public static final int[] directionToFacingMaps a Direction value (2D) to a Facing value (3D). -
facingToDirection
public static final int[] facingToDirectionMaps a Facing value (3D) to a Direction value (2D). -
rotateOpposite
public static final int[] rotateOppositeMaps a direction to that opposite of it. -
rotateRight
public static final int[] rotateRightMaps a direction to that to the right of it. -
rotateLeft
public static final int[] rotateLeftMaps a direction to that to the left of it. -
bedDirection
public static final int[][] bedDirection
-
-
Constructor Details
-
Direction
public Direction()
-
-
Method Details
-
getMovementDirection
public static int getMovementDirection(double par0, double par2) Returns the movement direction from a velocity vector. -
axesMatch
public static boolean axesMatch(int directionA, int directionB)
-