net.minecraft.core

public enum Direction

implements StringRepresentable

gl
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.unmapped.C_xpuuihxf
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
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 com.mojang.serialization.Codec<Direction>
g
CODEC
field_29502
f_zbhygcbw
CODEC
f_175356_
private final int
h
data3d
field_11032
f_xnopevsr
id
f_122339_
private final int
i
oppositeIndex
field_11031
f_jqokexui
idOpposite
f_122340_
private final int
j
data2d
field_11030
f_wytgjiez
idHorizontal
f_122341_
private final String
k
name
field_11046
f_abqikats
name
f_122342_
private final Direction$Axis
l
axis
field_11047
f_cbbzbcev
axis
f_122343_
private final Direction$AxisDirection
m
axisDirection
field_11044
f_qmkvdeuo
direction
f_122344_
private final Vec3i
n
normal
field_11042
f_yxdvzmgt
vector
f_122345_
private static final Direction[]
o
VALUES
field_11040
f_xneestkm
ALL
f_122346_
private static final Map<String, Direction>
p
BY_NAME
field_11045
f_nxxmoaxm
NAME_MAP
f_122347_
private static final Direction[]
q
BY_3D_DATA
field_11038
f_midvwggr
VALUES
f_122348_
private static final Direction[]
r
BY_2D_DATA
field_11041
f_bqmoexgm
HORIZONTAL
f_122349_
private static final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Direction>
s
BY_NORMAL
field_16542
f_nogydkkd
VECTOR_TO_DIRECTION
f_122350_

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(atf arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
m_srfplate(C_astfners arg0)
getEntityFacingOrder(Entity entity)
m_122382_(C_507_ p_122383_)
private static Direction[]
a(gl arg0, gl arg1, gl 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)
m_122398_(C_4687_ p_122399_, C_4687_ p_122400_, C_4687_ p_122401_)
public static Direction
a(d arg0, gl arg1)
rotate(Matrix4f arg0, Direction arg1)
method_23225(class_1159 arg0, class_2350 arg1)
m_nyqvqnqv(C_gxvddjib arg0, C_xpuuihxf arg1)
transform(Matrix4f matrix, Direction direction)
m_122384_(C_802_ p_122385_, C_4687_ p_122386_)
public Quaternion
a()
getRotation()
method_23224()
m_xwgdebbi()
getRotationQuaternion()
m_122406_()
public int
b()
get3DDataValue()
method_10146()
m_atdyqmtg()
getId()
m_122411_()
public int
d()
get2DDataValue()
method_10161()
m_zlqwwplb()
getHorizontal()
m_122416_()
get2DRotationValue()
public Direction$AxisDirection
e()
getAxisDirection()
method_10171()
m_fsfcsxhu()
getDirection()
m_122421_()
public static Direction
a(atf arg0, gl$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)
m_175357_(C_507_ p_175358_, C_4687_$C_4689_ p_175359_)
public Direction
f()
getOpposite()
method_10153()
m_buxxiflp()
getOpposite()
m_122424_()
opposite()
public Direction
a(gl$a arg0)
getClockWise(Direction$Axis arg0)
method_35833(class_2350$class_2351 arg0)
m_ydwhfihm(C_xpuuihxf$C_rmpfouoz arg0)
rotateClockwise(Direction$Axis axis)
m_175362_(C_4687_$C_4689_ arg0)
public Direction
b(gl$a arg0)
getCounterClockWise(Direction$Axis arg0)
method_35834(class_2350$class_2351 arg0)
m_pbuextkm(C_xpuuihxf$C_rmpfouoz arg0)
rotateCounterclockwise(Direction$Axis axis)
m_175364_(C_4687_$C_4689_ arg0)
public Direction
g()
getClockWise()
method_10170()
m_osvadcjw()
rotateYClockwise()
m_122427_()
private Direction
q()
getClockWiseX()
method_35835()
m_egpdzvgz()
rotateXClockwise()
m_175366_()
private Direction
r()
getCounterClockWiseX()
method_35836()
m_ffngupha()
rotateXCounterclockwise()
m_175367_()
private Direction
s()
getClockWiseZ()
method_35837()
m_yjupawxt()
rotateZClockwise()
m_175368_()
private Direction
t()
getCounterClockWiseZ()
method_35838()
m_qkgkwquv()
rotateZCounterclockwise()
m_175369_()
public Direction
h()
getCounterClockWise()
method_10160()
m_gdxixwix()
rotateYCounterclockwise()
m_122428_()
public int
i()
getStepX()
method_10148()
m_oqyobyjy()
getOffsetX()
m_122429_()
getAdjacentX()
public int
j()
getStepY()
method_10164()
m_lxrgvhbm()
getOffsetY()
m_122430_()
getAdjacentY()
public int
k()
getStepZ()
method_10165()
m_vyhskrab()
getOffsetZ()
m_122431_()
getAdjacentZ()
public Vector3f
l()
step()
method_23955()
m_iztsoygw()
getUnitVector()
m_122432_()
public String
m()
getName()
method_10151()
m_rybsiiha()
getName()
m_122433_()
public Direction$Axis
n()
getAxis()
method_10166()
m_iuvhambs()
getAxis()
m_122434_()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
m_zriikhwb(String arg0)
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)
m_122376_(int p_122377_)
fromType1(int arg0)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
m_dfjhoqwe(int arg0)
fromHorizontal(int value)
m_122407_(int p_122408_)
fromType2(int arg0)
public static Direction
a(gg arg0)
fromNormal(BlockPos arg0)
method_35832(class_2338 arg0)
m_ylpocnck(C_hynzadkk arg0)
fromVector(BlockPos pos)
m_175360_(C_4675_ p_175361_)
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)
m_ipxwfhsd(int arg0, int arg1, int arg2)
fromVector(int x, int y, int z)
m_122378_(int p_122379_, int p_122380_, int p_122381_)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
m_zdlrznbn(double arg0)
fromRotation(double rotation)
m_122364_(double p_122365_)
fromAngle(double arg0)
public static Direction
a(gl$a arg0, gl$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)
m_122387_(C_4687_$C_4689_ p_122388_, C_4687_$C_4693_ p_122389_)
public float
o()
toYRot()
method_10144()
m_ylzomeem()
asRotation()
m_122435_()
public static Direction
a(Random arg0)
getRandom(Random arg0)
method_10162(Random arg0)
m_gksmdspg(Random arg0)
random(Random random)
m_122404_(Random p_122405_)
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)
m_tccwmyzb(double arg0, double arg1, double arg2)
getFacing(double x, double y, double z)
m_122366_(double p_122367_, double p_122369_, 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)
m_ldgaxwhd(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 String
c()
getSerializedName()
method_15434()
m_dxbrenur()
asString()
m_7912_()
getName()
public static Direction
a(gl$b arg0, gl$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)
m_122390_(C_4687_$C_4693_ p_122391_, C_4687_$C_4689_ p_122392_)
public Vec3i
p()
getNormal()
method_10163()
m_cikjuvmv()
getVector()
m_122436_()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
m_veocfmwg(float arg0)
method_30928(float arg0)
m_122370_(float arg0)