net.minecraft.core

public enum Direction

implements StringRepresentable

ja
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.unmapped.C_xpuuihxf
net.minecraft.util.math.Direction
net.minecraft.util.math.Direction

Enum constant summary

Enum Constant
a
DOWN
field_11033
f_xygjmnro
DOWN
DOWN
b
UP
field_11036
f_zqbqkjxs
UP
UP
c
NORTH
field_11043
f_aciyjvvi
NORTH
NORTH
d
SOUTH
field_11035
f_ndjtdfhn
SOUTH
SOUTH
e
WEST
field_11039
f_zfdkaecl
WEST
WEST
f
EAST
field_11034
f_logymkrj
EAST
EAST

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Direction[]
a(bwf arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
m_srfplate(C_astfners arg0)
getEntityFacingOrder(Entity entity)
getEntityFacingOrder(Entity entity)
private static Direction[]
a(ja arg0, ja arg1, ja arg2)
makeDirectionArray(Direction arg0, Direction arg1, Direction arg2)
method_10145(class_2350 arg0, class_2350 arg1, class_2350 arg2)
m_pgajqvvm(C_xpuuihxf arg0, C_xpuuihxf arg1, C_xpuuihxf arg2)
listClosest(Direction first, Direction second, Direction third)
listClosest(Direction first, Direction second, Direction third)
public static Direction
a(org.joml.Matrix4f arg0, ja arg1)
rotate(org.joml.Matrix4f arg0, Direction arg1)
method_23225(org.joml.Matrix4f arg0, class_2350 arg1)
m_nyqvqnqv(org.joml.Matrix4f arg0, C_xpuuihxf arg1)
transform(org.joml.Matrix4f matrix, Direction direction)
transform(org.joml.Matrix4f position, Direction direction)
public static Collection<Direction>
a(azv arg0)
allShuffled(RandomSource arg0)
method_42014(class_5819 arg0)
m_ucwgyusq(C_rlomrsco arg0)
shuffle(Random random)
getShuffledDirections(RandomGenerator random)
public static Stream<Direction>
a()
stream()
method_42013()
m_zdhgkzlo()
stream()
stream()
public static float
a(ja arg0)
getYRot(Direction arg0)
method_62673(class_2350 arg0)
m_vzfadujr(C_xpuuihxf arg0)
getHorizontalDegreesOrThrow(Direction direction)
getHorizontalDegrees(Direction direction)
public org.joml.Quaternionf
b()
getRotation()
method_23224()
m_xwgdebbi()
getRotationQuaternion()
getRotationQuaternion()
public int
d()
get3DDataValue()
method_10146()
m_atdyqmtg()
getId()
getId()
public int
e()
get2DDataValue()
method_10161()
m_zlqwwplb()
getHorizontalQuarterTurns()
getHorizontal()
public Direction$AxisDirection
f()
getAxisDirection()
method_10171()
m_fsfcsxhu()
getDirection()
getDirection()
public static Direction
a(bwf arg0, ja$a arg1)
getFacingAxis(Entity arg0, Direction$Axis arg1)
method_32801(class_1297 arg0, class_2350$class_2351 arg1)
m_qnbvkhac(C_astfners arg0, C_xpuuihxf$C_rmpfouoz arg1)
getLookDirectionForAxis(Entity entity, Direction$Axis axis)
getLookDirectionForAxis(Entity entity, Direction$Axis axis)
public Direction
g()
getOpposite()
method_10153()
m_buxxiflp()
getOpposite()
getOpposite()
public Direction
a(ja$a arg0)
getClockWise(Direction$Axis arg0)
method_35833(class_2350$class_2351 arg0)
m_ydwhfihm(C_xpuuihxf$C_rmpfouoz arg0)
rotateClockwise(Direction$Axis axis)
rotateClockwise(Direction$Axis axis)
public Direction
b(ja$a arg0)
getCounterClockWise(Direction$Axis arg0)
method_35834(class_2350$class_2351 arg0)
m_pbuextkm(C_xpuuihxf$C_rmpfouoz arg0)
rotateCounterclockwise(Direction$Axis axis)
rotateCounterclockwise(Direction$Axis axis)
public Direction
h()
getClockWise()
method_10170()
m_osvadcjw()
rotateYClockwise()
rotateYClockwise()
private Direction
s()
getClockWiseX()
method_35835()
m_egpdzvgz()
rotateXClockwise()
rotateXClockwise()
private Direction
t()
getCounterClockWiseX()
method_35836()
m_ffngupha()
rotateXCounterclockwise()
rotateXCounterclockwise()
private Direction
u()
getClockWiseZ()
method_35837()
m_yjupawxt()
rotateZClockwise()
rotateZClockwise()
private Direction
v()
getCounterClockWiseZ()
method_35838()
m_qkgkwquv()
rotateZCounterclockwise()
rotateZCounterclockwise()
public Direction
i()
getCounterClockWise()
method_10160()
m_gdxixwix()
rotateYCounterclockwise()
rotateYCounterclockwise()
public int
j()
getStepX()
method_10148()
m_oqyobyjy()
getOffsetX()
getOffsetX()
public int
k()
getStepY()
method_10164()
m_lxrgvhbm()
getOffsetY()
getOffsetY()
public int
l()
getStepZ()
method_10165()
m_vyhskrab()
getOffsetZ()
getOffsetZ()
public org.joml.Vector3f
m()
step()
method_23955()
m_iztsoygw()
getUnitVector()
getUnitVector()
public String
n()
getName()
method_10151()
m_rybsiiha()
getName()
getName()
public Direction$Axis
o()
getAxis()
method_10166()
m_iuvhambs()
getAxis()
getAxis()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
m_zriikhwb(String arg0)
byName(String name)
byName(String name)
public static Direction
a(int arg0)
from3DDataValue(int arg0)
method_10143(int arg0)
m_cmaqxlom(int arg0)
byId(int id)
byId(int id)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
m_dfjhoqwe(int arg0)
fromHorizontalQuarterTurns(int quarterTurns)
fromHorizontal(int value)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
m_zdlrznbn(double arg0)
fromHorizontalDegrees(double angle)
fromRotation(double rotation)
public static Direction
a(ja$a arg0, ja$b arg1)
fromAxisAndDirection(Direction$Axis arg0, Direction$AxisDirection arg1)
method_10169(class_2350$class_2351 arg0, class_2350$class_2352 arg1)
m_rzedosik(C_xpuuihxf$C_rmpfouoz arg0, C_xpuuihxf$C_ozjqcgqq arg1)
from(Direction$Axis axis, Direction$AxisDirection direction)
from(Direction$Axis axis, Direction$AxisDirection direction)
public float
p()
toYRot()
method_10144()
m_ylzomeem()
getPositiveHorizontalDegrees()
asRotation()
public static Direction
b(azv arg0)
getRandom(RandomSource arg0)
method_10162(class_5819 arg0)
m_gksmdspg(C_rlomrsco arg0)
random(Random random)
random(RandomGenerator 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)
m_aceixrsp(double arg0, double arg1, double arg2)
getFacing(double x, double y, double z)
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)
m_ckfxacqi(float arg0, float arg1, float arg2)
getFacing(float x, float y, float z)
getFacing(float x, float y, float z)
public static Direction
a(feq arg0)
getApproximateNearest(Vec3 arg0)
method_58251(class_243 arg0)
m_icbobqmt(C_vgpupfxx arg0)
getFacing(Vec3d vec)
getFacing(Vec3d vec)
public static Direction
a(int arg0, int arg1, int arg2, ja arg3)
getNearest(int arg0, int arg1, int arg2, Direction arg3)
method_62672(int arg0, int arg1, int arg2, class_2350 arg3)
m_obcinsgd(int arg0, int arg1, int arg2, C_xpuuihxf arg3)
fromVector(int x, int y, int z, Direction fallback)
fromVec(int x, int y, int z, Direction fallback)
public static Direction
a(jz arg0, ja arg1)
getNearest(Vec3i arg0, Direction arg1)
method_62674(class_2382 arg0, class_2350 arg1)
m_rgctwylt(C_ceivtqhh arg0, C_xpuuihxf arg1)
fromVector(Vec3i vec, Direction fallback)
fromVec(Vec3i vec, Direction direction)
public String
c()
getSerializedName()
method_15434()
m_dxbrenur()
asString()
asString()
private static com.mojang.serialization.DataResult<Direction>
b(ja arg0)
verifyVertical(Direction arg0)
method_38940(class_2350 arg0)
m_arokrhof(C_xpuuihxf arg0)
validateVertical(Direction direction)
validateVertical(Direction direction)
public static Direction
a(ja$b arg0, ja$a arg1)
get(Direction$AxisDirection arg0, Direction$Axis arg1)
method_10156(class_2350$class_2352 arg0, class_2350$class_2351 arg1)
m_hntyvpnl(C_xpuuihxf$C_ozjqcgqq arg0, C_xpuuihxf$C_rmpfouoz arg1)
get(Direction$AxisDirection direction, Direction$Axis axis)
get(Direction$AxisDirection direction, Direction$Axis axis)
public Vec3i
q()
getUnitVec3i()
method_62675()
m_uinacubi()
getVector()
asVec3i()
public Vec3
r()
getUnitVec3()
method_62676()
m_nmryvhog()
getDoubleVector()
asVec3d()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
m_veocfmwg(float arg0)
pointsTo(float yaw)
pointsTo(float yaw)