net.minecraft.core

public enum Direction

implements StringRepresentable

jm
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.unmapped.C_xpuuihxf
net.minecraft.util.math.Direction
net.minecraft.util.math.Direction
net.minecraft.src.C_4687_
net.minecraft.core.EnumDirection

Enum constant summary

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

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Direction[]
a(bvj arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
m_srfplate(C_astfners arg0)
getEntityFacingOrder(Entity entity)
getEntityFacingOrder(Entity entity)
m_122382_(C_507_ p_122383_)
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)
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)
m_122398_(C_4687_ p_122399_, C_4687_ p_122400_, C_4687_ p_122401_)
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)
m_nyqvqnqv(org.joml.Matrix4f arg0, C_xpuuihxf arg1)
transform(org.joml.Matrix4f matrix, Direction direction)
transform(org.joml.Matrix4f position, Direction direction)
m_252919_(org.joml.Matrix4f p_254393_, C_4687_ p_254252_)
public static Collection<Direction>
a(bam arg0)
allShuffled(RandomSource arg0)
method_42014(class_5819 arg0)
m_ucwgyusq(C_rlomrsco arg0)
shuffle(Random random)
getShuffledDirections(RandomGenerator random)
m_235667_(C_212974_ p_235668_)
public static Stream<Direction>
a()
stream()
method_42013()
m_zdhgkzlo()
stream()
stream()
m_235666_()
public static float
a(jm arg0)
getYRot(Direction arg0)
method_62673(class_2350 arg0)
m_vzfadujr(C_xpuuihxf arg0)
getHorizontalDegrees(Direction direction)
m_vzfadujr(Direction direction)
m_354011_(C_4687_ p_360754_)
public org.joml.Quaternionf
b()
getRotation()
method_23224()
m_xwgdebbi()
getRotationQuaternion()
getRotationQuaternion()
m_253075_()
public int
d()
get3DDataValue()
method_10146()
m_atdyqmtg()
getId()
getId()
m_122411_()
public int
e()
get2DDataValue()
method_10161()
m_zlqwwplb()
getHorizontal()
getHorizontal()
m_122416_()
public Direction$AxisDirection
f()
getAxisDirection()
method_10171()
m_fsfcsxhu()
getDirection()
getDirection()
m_122421_()
public static Direction
a(bvj arg0, jm$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)
m_175357_(C_507_ p_175358_, C_4687_$C_4689_ p_175359_)
public Direction
g()
getOpposite()
method_10153()
m_buxxiflp()
getOpposite()
getOpposite()
m_122424_()
public Direction
a(jm$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)
m_175362_(C_4687_$C_4689_ arg0)
public Direction
b(jm$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)
m_175364_(C_4687_$C_4689_ arg0)
public Direction
h()
getClockWise()
method_10170()
m_osvadcjw()
rotateYClockwise()
rotateYClockwise()
m_122427_()
private Direction
s()
getClockWiseX()
method_35835()
m_egpdzvgz()
rotateXClockwise()
rotateXClockwise()
m_175366_()
private Direction
t()
getCounterClockWiseX()
method_35836()
m_ffngupha()
rotateXCounterclockwise()
rotateXCounterclockwise()
m_175367_()
private Direction
u()
getClockWiseZ()
method_35837()
m_yjupawxt()
rotateZClockwise()
rotateZClockwise()
m_175368_()
private Direction
v()
getCounterClockWiseZ()
method_35838()
m_qkgkwquv()
rotateZCounterclockwise()
rotateZCounterclockwise()
m_175369_()
public Direction
i()
getCounterClockWise()
method_10160()
m_gdxixwix()
rotateYCounterclockwise()
rotateYCounterclockwise()
m_122428_()
public int
j()
getStepX()
method_10148()
m_oqyobyjy()
getOffsetX()
getOffsetX()
m_122429_()
public int
k()
getStepY()
method_10164()
m_lxrgvhbm()
getOffsetY()
getOffsetY()
m_122430_()
public int
l()
getStepZ()
method_10165()
m_vyhskrab()
getOffsetZ()
getOffsetZ()
m_122431_()
public org.joml.Vector3f
m()
step()
method_23955()
m_iztsoygw()
getUnitVector()
getUnitVector()
m_253071_()
public String
n()
getName()
method_10151()
m_rybsiiha()
getName()
getName()
m_122433_()
public Direction$Axis
o()
getAxis()
method_10166()
m_iuvhambs()
getAxis()
getAxis()
m_122434_()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
m_zriikhwb(String arg0)
byName(String name)
byName(String name)
m_122402_(String p_122403_)
public static Direction
a(int arg0)
from3DDataValue(int arg0)
method_10143(int arg0)
m_cmaqxlom(int arg0)
byId(int id)
byId(int id)
m_122376_(int p_122377_)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
m_dfjhoqwe(int arg0)
fromHorizontal(int value)
fromHorizontal(int value)
m_122407_(int p_122408_)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
m_zdlrznbn(double arg0)
fromRotation(double rotation)
fromRotation(double rotation)
m_122364_(double p_122365_)
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)
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)
m_122387_(C_4687_$C_4689_ p_122388_, C_4687_$C_4693_ p_122389_)
public float
p()
toYRot()
method_10144()
m_ylzomeem()
asRotation()
asRotation()
m_122435_()
public static Direction
b(bam arg0)
getRandom(RandomSource arg0)
method_10162(class_5819 arg0)
m_gksmdspg(C_rlomrsco arg0)
random(Random random)
random(RandomGenerator random)
m_235672_(C_212974_ p_235673_)
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)
m_354320_(double p_368065_, double p_369926_, double arg2)
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)
m_122372_(float p_122373_, float p_122374_, float p_122375_)
public static Direction
a(fbx arg0)
getApproximateNearest(Vec3 arg0)
method_58251(class_243 arg0)
m_icbobqmt(C_vgpupfxx arg0)
getFacing(Vec3d vec)
m_354271_(C_3046_ p_361748_)
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)
m_obcinsgd(int arg0, int arg1, int arg2, C_xpuuihxf arg3)
fromVector(int x, int y, int z, Direction fallback)
m_obcinsgd(int arg0, int arg1, int arg2, Direction direction)
m_122366_(int p_367360_, int p_362027_, int p_368517_, C_4687_ p_368118_)
public static Direction
a(kl arg0, jm 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)
m_rgctwylt(Vec3i arg0, Direction direction)
m_324946_(C_4713_ p_365890_, C_4687_ p_366391_)
public String
c()
getSerializedName()
method_15434()
m_dxbrenur()
asString()
asString()
m_7912_()
private static com.mojang.serialization.DataResult<Direction>
b(jm arg0)
verifyVertical(Direction arg0)
method_38940(class_2350 arg0)
m_arokrhof(C_xpuuihxf arg0)
validateVertical(Direction direction)
validateVertical(Direction direction)
m_194528_(C_4687_ p_194529_)
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)
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)
m_122390_(C_4687_$C_4693_ p_122391_, C_4687_$C_4689_ p_122392_)
public Vec3i
q()
getUnitVec3i()
method_62675()
m_uinacubi()
getVector()
m_122436_()
public Vec3
r()
getUnitVec3()
method_62676()
m_nmryvhog()
getDoubleVector()
m_354850_()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
m_veocfmwg(float arg0)
pointsTo(float yaw)
pointsTo(float yaw)
m_122370_(float arg0)