net.minecraft.core

public enum Direction

implements StringRepresentable

ic
net.minecraft.core.Direction
net.minecraft.class_2350
net.minecraft.util.math.Direction
net.minecraft.src.C_4687_
net.minecraft.core.EnumDirection

Enum constant summary

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

Field summary

Modifier and TypeField
public static final StringRepresentable$EnumCodec<Direction>
g
CODEC
field_29502
CODEC
f_175356_
public static final com.mojang.serialization.Codec<Direction>
h
VERTICAL_CODEC
field_35088
VERTICAL_CODEC
f_194527_
private final int
i
data3d
field_11032
id
f_122339_
private final int
j
oppositeIndex
field_11031
idOpposite
f_122340_
private final int
k
data2d
field_11030
idHorizontal
f_122341_
private final String
l
name
field_11046
name
f_122342_
private final Direction$Axis
m
axis
field_11047
axis
f_122343_
private final Direction$AxisDirection
n
axisDirection
field_11044
direction
f_122344_
private final Vec3i
o
normal
field_11042
vector
f_122345_
private static final Direction[]
p
VALUES
field_11040
ALL
f_122346_
private static final Direction[]
q
BY_3D_DATA
field_11038
VALUES
f_122348_
private static final Direction[]
r
BY_2D_DATA
field_11041
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(blv arg0)
orderedByNearest(Entity arg0)
method_10159(class_1297 arg0)
getEntityFacingOrder(Entity entity)
m_122382_(C_507_ p_122383_)
private static Direction[]
a(ic arg0, ic arg1, ic 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)
m_122398_(C_4687_ p_122399_, C_4687_ p_122400_, C_4687_ p_122401_)
public static Direction
a(org.joml.Matrix4f arg0, ic arg1)
rotate(org.joml.Matrix4f arg0, Direction arg1)
method_23225(org.joml.Matrix4f arg0, class_2350 arg1)
transform(org.joml.Matrix4f matrix, Direction direction)
m_252919_(org.joml.Matrix4f p_254393_, C_4687_ p_254252_)
public static Collection<Direction>
a(auv arg0)
allShuffled(RandomSource arg0)
method_42014(class_5819 arg0)
shuffle(Random random)
m_235667_(C_212974_ p_235668_)
public static Stream<Direction>
a()
stream()
method_42013()
stream()
m_235666_()
public org.joml.Quaternionf
b()
getRotation()
method_23224()
getRotationQuaternion()
m_253075_()
public int
d()
get3DDataValue()
method_10146()
getId()
m_122411_()
public int
e()
get2DDataValue()
method_10161()
getHorizontal()
m_122416_()
public Direction$AxisDirection
f()
getAxisDirection()
method_10171()
getDirection()
m_122421_()
public static Direction
a(blv arg0, ic$a arg1)
getFacingAxis(Entity arg0, Direction$Axis arg1)
method_32801(class_1297 arg0, class_2350$class_2351 arg1)
getLookDirectionForAxis(Entity entity, Direction$Axis axis)
m_175357_(C_507_ p_175358_, C_4687_$C_4689_ p_175359_)
public Direction
g()
getOpposite()
method_10153()
getOpposite()
m_122424_()
public Direction
a(ic$a arg0)
getClockWise(Direction$Axis arg0)
method_35833(class_2350$class_2351 arg0)
rotateClockwise(Direction$Axis axis)
m_175362_(C_4687_$C_4689_ arg0)
public Direction
b(ic$a arg0)
getCounterClockWise(Direction$Axis arg0)
method_35834(class_2350$class_2351 arg0)
rotateCounterclockwise(Direction$Axis axis)
m_175364_(C_4687_$C_4689_ arg0)
public Direction
h()
getClockWise()
method_10170()
rotateYClockwise()
m_122427_()
private Direction
r()
getClockWiseX()
method_35835()
rotateXClockwise()
m_175366_()
private Direction
s()
getCounterClockWiseX()
method_35836()
rotateXCounterclockwise()
m_175367_()
private Direction
t()
getClockWiseZ()
method_35837()
rotateZClockwise()
m_175368_()
private Direction
u()
getCounterClockWiseZ()
method_35838()
rotateZCounterclockwise()
m_175369_()
public Direction
i()
getCounterClockWise()
method_10160()
rotateYCounterclockwise()
m_122428_()
public int
j()
getStepX()
method_10148()
getOffsetX()
m_122429_()
public int
k()
getStepY()
method_10164()
getOffsetY()
m_122430_()
public int
l()
getStepZ()
method_10165()
getOffsetZ()
m_122431_()
public org.joml.Vector3f
m()
step()
method_23955()
getUnitVector()
m_253071_()
public String
n()
getName()
method_10151()
getName()
m_122433_()
public Direction$Axis
o()
getAxis()
method_10166()
getAxis()
m_122434_()
public static Direction
a(String arg0)
byName(String arg0)
method_10168(String arg0)
byName(String name)
m_122402_(String p_122403_)
public static Direction
a(int arg0)
from3DDataValue(int arg0)
method_10143(int arg0)
byId(int id)
m_122376_(int p_122377_)
public static Direction
b(int arg0)
from2DDataValue(int arg0)
method_10139(int arg0)
fromHorizontal(int value)
m_122407_(int p_122408_)
public static Direction
a(int arg0, int arg1, int arg2)
fromDelta(int arg0, int arg1, int arg2)
method_50026(int arg0, int arg1, int arg2)
fromVector(int x, int y, int z)
m_122378_(int p_278323_, int p_278296_, int p_278347_)
public static Direction
a(double arg0)
fromYRot(double arg0)
method_10150(double arg0)
fromRotation(double rotation)
m_122364_(double p_122365_)
public static Direction
a(ic$a arg0, ic$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)
m_122387_(C_4687_$C_4689_ p_122388_, C_4687_$C_4693_ p_122389_)
public float
p()
toYRot()
method_10144()
asRotation()
m_122435_()
public static Direction
b(auv arg0)
getRandom(RandomSource arg0)
method_10162(class_5819 arg0)
random(Random random)
m_235672_(C_212974_ p_235673_)
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)
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)
getFacing(float x, float y, float z)
m_122372_(float p_122373_, float p_122374_, float p_122375_)
public String
c()
getSerializedName()
method_15434()
asString()
m_7912_()
private static com.mojang.serialization.DataResult<Direction>
a(ic arg0)
verifyVertical(Direction arg0)
method_38940(class_2350 arg0)
validateVertical(Direction direction)
m_194528_(C_4687_ p_194529_)
public static Direction
a(ic$b arg0, ic$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)
m_122390_(C_4687_$C_4693_ p_122391_, C_4687_$C_4689_ p_122392_)
public Vec3i
q()
getNormal()
method_10163()
getVector()
m_122436_()
public boolean
a(float arg0)
isFacingAngle(float arg0)
method_30928(float arg0)
pointsTo(float yaw)
m_122370_(float arg0)