net.minecraft.core

public enum Direction

implements StringRepresentable

gc
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.util.math.Direction
net.minecraft.util.Direction
net.minecraft.server.v1_16_R3.EnumDirection

Enum constant summary

Enum Constant
a
DOWN
field_11033
DOWN
DOWN
DOWN
b
UP
field_11036
UP
UP
UP
c
NORTH
field_11043
NORTH
NORTH
NORTH
d
SOUTH
field_11035
SOUTH
SOUTH
SOUTH
e
WEST
field_11039
WEST
WEST
WEST
f
EAST
field_11034
EAST
EAST
EAST

Field summary

Modifier and TypeField
private final int
g
data3d
field_11032
id
field_176748_g
private final int
h
oppositeIndex
field_11031
idOpposite
field_176759_h
private final int
i
data2d
field_11030
idHorizontal
field_176760_i
private final String
j
name
field_11046
name
field_176757_j
private final Direction$Axis
k
axis
field_11047
axis
field_176758_k
private final Direction$AxisDirection
l
axisDirection
field_11044
direction
field_176755_l
private final Vec3i
m
normal
field_11042
vector
field_176756_m
private static final Direction[]
n
VALUES
field_11040
ALL
field_199792_n
private static final Map<String, Direction>
o
BY_NAME
field_11045
NAME_MAP
field_176761_p
private static final Direction[]
p
BY_3D_DATA
field_11038
VALUES
field_82609_l
private static final Direction[]
q
BY_2D_DATA
field_11041
HORIZONTAL
field_176754_o
private static final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Direction>
r
BY_NORMAL
field_16542
VECTOR_TO_DIRECTION
field_218387_r

Constructor summary

ModifierConstructor
private (int arg0, int arg1, int id, String idOpposite, Direction$AxisDirection idHorizontal, Direction$Axis name, Vec3i direction)

Method summary

Modifier and TypeMethod
public static Direction[]
a(aqa arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
getEntityFacingOrder(Entity entity)
func_196054_a(Entity arg0)
private static Direction[]
a(gc arg0, gc arg1, gc arg2)
makeDirectionArray(Direction arg0, Direction arg1, Direction arg2)
method_10145(class_2350 arg0, class_2350 arg1, class_2350 arg2)
listClosest(Direction first, Direction second, Direction third)
func_196053_a(Direction arg0, Direction arg1, Direction arg2)
public int
c()
get3DDataValue()
method_10146()
getId()
func_176745_a()
public int
d()
get2DDataValue()
method_10161()
getHorizontal()
func_176736_b()
get2DRotationValue()
public Direction$AxisDirection
e()
getAxisDirection()
method_10171()
getDirection()
func_176743_c()
public Direction
f()
getOpposite()
method_10153()
getOpposite()
func_176734_d()
opposite()
public Direction
g()
getClockWise()
method_10170()
rotateYClockwise()
func_176746_e()
public Direction
h()
getCounterClockWise()
method_10160()
rotateYCounterclockwise()
func_176735_f()
public int
i()
getStepX()
method_10148()
getOffsetX()
func_82601_c()
getAdjacentX()
public int
j()
getStepY()
method_10164()
getOffsetY()
func_96559_d()
getAdjacentY()
public int
k()
getStepZ()
method_10165()
getOffsetZ()
func_82599_e()
getAdjacentZ()
public String
m()
getName()
method_10151()
getName()
func_176742_j()
public Direction$Axis
n()
getAxis()
method_10166()
getAxis()
func_176740_k()
public static Direction
a(int arg0)
from3DDataValue(int arg0)
method_10143(int arg0)
byId(int id)
func_82600_a(int arg0)
fromType1(int arg0)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
fromHorizontal(int value)
func_176731_b(int arg0)
fromType2(int arg0)
public static Direction
a(int arg0, int arg1, int arg2)
fromNormal(int arg0, int arg1, int arg2)
method_16365(int arg0, int arg1, int arg2)
fromVector(int x, int y, int z)
func_218383_a(int arg0, int arg1, int arg2)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
fromRotation(double rotation)
func_176733_a(double arg0)
fromAngle(double arg0)
public static Direction
a(gc$a arg0, gc$b arg1)
fromAxisAndDirection(Direction$Axis arg0, Direction$AxisDirection arg1)
method_10169(class_2350$class_2351 arg0, class_2350$class_2352 arg1)
from(Direction$Axis axis, Direction$AxisDirection direction)
func_211699_a(Direction$Axis arg0, Direction$AxisDirection arg1)
public float
o()
toYRot()
method_10144()
asRotation()
func_185119_l()
public static Direction
a(Random arg0)
getRandom(Random arg0)
method_10162(Random arg0)
random(Random random)
func_239631_a_(Random arg0)
public static Direction
a(double arg0, double arg1, double arg2)
getNearest(double arg0, double arg1, double arg2)
method_10142(double arg0, double arg1, double arg2)
getFacing(double x, double y, double z)
func_210769_a(double arg0, double arg1, double arg2)
public static Direction
a(float arg0, float arg1, float arg2)
getNearest(float arg0, float arg1, float arg2)
method_10147(float arg0, float arg1, float arg2)
getFacing(float x, float y, float z)
func_176737_a(float arg0, float arg1, float arg2)
public String
a()
getSerializedName()
method_15434()
asString()
func_176610_l()
getName()
public static Direction
a(gc$b arg0, gc$a arg1)
get(Direction$AxisDirection arg0, Direction$Axis arg1)
method_10156(class_2350$class_2352 arg0, class_2350$class_2351 arg1)
get(Direction$AxisDirection direction, Direction$Axis axis)
func_181076_a(Direction$AxisDirection arg0, Direction$Axis arg1)
public Vec3i
p()
getNormal()
method_10163()
getVector()
func_176730_m()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
method_30928(float arg0)
func_243532_a(float arg0)
public static Direction
a(b arg0, gc arg1)
rotate(Matrix4f arg0, Direction arg1)
method_23225(class_1159 arg0, class_2350 arg1)
transform(Matrix4f matrix, Direction direction)
func_229385_a_(Matrix4f arg0, Direction arg1)
public Quaternion
b()
getRotation()
method_23224()
getRotationQuaternion()
func_229384_a_()
public Vector3f
l()
step()
method_23955()
getUnitVector()
func_229386_k_()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
byName(String name)
func_176739_a(String arg0)