net.minecraft.world.level.block

public enum Rotation

implements StringRepresentable

dsm
net.minecraft.world.level.block.Rotation
net.minecraft.class_2470
net.minecraft.util.BlockRotation

Enum constant summary

Enum Constant
a
NONE
field_11467
NONE
b
CLOCKWISE_90
field_11463
CLOCKWISE_90
c
CLOCKWISE_180
field_11464
CLOCKWISE_180
d
COUNTERCLOCKWISE_90
field_11465
COUNTERCLOCKWISE_90

Field summary

Modifier and TypeField
public static final IntFunction<Rotation>
e
BY_ID
field_55986
INDEX_MAPPER
public static final com.mojang.serialization.Codec<Rotation>
f
CODEC
field_39313
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, Rotation>
g
STREAM_CODEC
field_55987
PACKET_CODEC
private final int
h
index
field_55988
index
private final String
i
id
field_39314
id
private final OctahedralGroup
j
rotation
field_23264
directionTransformation

Constructor summary

ModifierConstructor
private (int arg0, String arg1, OctahedralGroup index)

Method summary

Modifier and TypeMethod
public Rotation
a(dsm arg0)
getRotated(Rotation arg0)
method_10501(class_2470 arg0)
rotate(BlockRotation rotation)
public OctahedralGroup
a()
rotation()
method_26383()
getDirectionTransformation()
public Direction
a(ja arg0)
rotate(Direction arg0)
method_10503(class_2350 arg0)
rotate(Direction direction)
public int
a(int arg0, int arg1)
rotate(int arg0, int arg1)
method_10502(int arg0, int arg1)
rotate(int rotation, int fullTurn)
public static Rotation
a(azt arg0)
getRandom(RandomSource arg0)
method_16548(class_5819 arg0)
random(Random random)
public static List<Rotation>
b(azt arg0)
getShuffled(RandomSource arg0)
method_16547(class_5819 arg0)
randomRotationOrder(Random random)
public String
c()
getSerializedName()
method_15434()
asString()
private int
b()
getIndex()
method_66710()
getIndex()