net.minecraft.core

public enum Direction

implements StringRepresentable

jm
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.util.math.Direction
net.minecraft.core.EnumDirection

Enum constant summary

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

Field summary

Modifier and TypeField
public static final StringRepresentable$EnumCodec<Direction>
g
CODEC
field_29502
CODEC
public static final com.mojang.serialization.Codec<Direction>
h
VERTICAL_CODEC
field_35088
VERTICAL_CODEC
public static final IntFunction<Direction>
i
BY_ID
field_48449
ID_TO_VALUE_FUNCTION
public static final StreamCodec<io.netty.buffer.ByteBuf, Direction>
j
STREAM_CODEC
field_48450
PACKET_CODEC
private final int
k
data3d
field_11032
id
private final int
l
oppositeIndex
field_11031
idOpposite
private final int
m
data2d
field_11030
idHorizontal
private final String
n
name
field_11046
name
private final Direction$Axis
o
axis
field_11047
axis
private final Direction$AxisDirection
p
axisDirection
field_11044
direction
private final Vec3i
q
normal
field_11042
vec3i
private final Vec3
r
normalVec3
field_53685
doubleVector
private static final Direction[]
s
VALUES
field_11040
ALL
private static final Direction[]
t
BY_3D_DATA
field_11038
VALUES
private static final Direction[]
u
BY_2D_DATA
field_11041
HORIZONTAL

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(bvk arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
getEntityFacingOrder(Entity entity)
private static Direction[]
a(jm arg0, jm arg1, jm 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)
public static Direction
a(org.joml.Matrix4f arg0, jm arg1)
rotate(org.joml.Matrix4f arg0, Direction arg1)
method_23225(org.joml.Matrix4f arg0, class_2350 arg1)
transform(org.joml.Matrix4f matrix, Direction direction)
public static Collection<Direction>
a(bam arg0)
allShuffled(RandomSource arg0)
method_42014(class_5819 arg0)
shuffle(Random random)
public static Stream<Direction>
a()
stream()
method_42013()
stream()
public static float
a(jm arg0)
getYRot(Direction arg0)
method_62673(class_2350 arg0)
getHorizontalDegrees(Direction direction)
public org.joml.Quaternionf
b()
getRotation()
method_23224()
getRotationQuaternion()
public int
d()
get3DDataValue()
method_10146()
getId()
public int
e()
get2DDataValue()
method_10161()
getHorizontal()
public Direction$AxisDirection
f()
getAxisDirection()
method_10171()
getDirection()
public static Direction
a(bvk arg0, jm$a arg1)
getFacingAxis(Entity arg0, Direction$Axis arg1)
method_32801(class_1297 arg0, class_2350$class_2351 arg1)
getLookDirectionForAxis(Entity entity, Direction$Axis axis)
public Direction
g()
getOpposite()
method_10153()
getOpposite()
public Direction
a(jm$a arg0)
getClockWise(Direction$Axis arg0)
method_35833(class_2350$class_2351 arg0)
rotateClockwise(Direction$Axis axis)
public Direction
b(jm$a arg0)
getCounterClockWise(Direction$Axis arg0)
method_35834(class_2350$class_2351 arg0)
rotateCounterclockwise(Direction$Axis axis)
public Direction
h()
getClockWise()
method_10170()
rotateYClockwise()
private Direction
s()
getClockWiseX()
method_35835()
rotateXClockwise()
private Direction
t()
getCounterClockWiseX()
method_35836()
rotateXCounterclockwise()
private Direction
u()
getClockWiseZ()
method_35837()
rotateZClockwise()
private Direction
v()
getCounterClockWiseZ()
method_35838()
rotateZCounterclockwise()
public Direction
i()
getCounterClockWise()
method_10160()
rotateYCounterclockwise()
public int
j()
getStepX()
method_10148()
getOffsetX()
public int
k()
getStepY()
method_10164()
getOffsetY()
public int
l()
getStepZ()
method_10165()
getOffsetZ()
public org.joml.Vector3f
m()
step()
method_23955()
getUnitVector()
public String
n()
getName()
method_10151()
getName()
public Direction$Axis
o()
getAxis()
method_10166()
getAxis()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
byName(String name)
public static Direction
a(int arg0)
from3DDataValue(int arg0)
method_10143(int arg0)
byId(int id)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
fromHorizontal(int value)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
fromRotation(double rotation)
public static Direction
a(jm$a arg0, jm$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)
public float
p()
toYRot()
method_10144()
asRotation()
public static Direction
b(bam arg0)
getRandom(RandomSource arg0)
method_10162(class_5819 arg0)
random(Random random)
public static Direction
a(double arg0, double arg1, double arg2)
getApproximateNearest(double arg0, double arg1, double arg2)
method_10142(double arg0, double arg1, double arg2)
getFacing(double x, double y, double z)
public static Direction
a(float arg0, float arg1, float arg2)
getApproximateNearest(float arg0, float arg1, float arg2)
method_10147(float arg0, float arg1, float arg2)
getFacing(float x, float y, float z)
public static Direction
a(fby arg0)
getApproximateNearest(Vec3 arg0)
method_58251(class_243 arg0)
getFacing(Vec3d vec)
public static Direction
a(int arg0, int arg1, int arg2, jm arg3)
getNearest(int arg0, int arg1, int arg2, Direction arg3)
method_62672(int arg0, int arg1, int arg2, class_2350 arg3)
fromVector(int x, int y, int z, Direction fallback)
public static Direction
a(kl arg0, jm arg1)
getNearest(Vec3i arg0, Direction arg1)
method_62674(class_2382 arg0, class_2350 arg1)
fromVector(Vec3i vec, Direction fallback)
public String
c()
getSerializedName()
method_15434()
asString()
private static com.mojang.serialization.DataResult<Direction>
b(jm arg0)
verifyVertical(Direction arg0)
method_38940(class_2350 arg0)
validateVertical(Direction direction)
public static Direction
a(jm$b arg0, jm$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)
public Vec3i
q()
getUnitVec3i()
method_62675()
getVector()
public Vec3
r()
getUnitVec3()
method_62676()
getDoubleVector()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
pointsTo(float yaw)