net.minecraft.util.math

public class RotationPropertyHelper

net.minecraft.world.level.block.state.properties.RotationSegment
net.minecraft.class_7718
net.minecraft.util.math.RotationPropertyHelper

Field summary

Modifier and TypeField
private static final RotationCalculator
SEGMENTED_ANGLE16
field_41768
CALCULATOR
private static final int
MAX_SEGMENT_INDEX
field_40345
MAX
private static final int
NORTH_0
field_40346
NORTH
private static final int
EAST_90
field_40347
EAST
private static final int
SOUTH_180
field_40348
SOUTH
private static final int
WEST_270
field_40349
WEST

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static int
getMaxSegmentIndex()
method_45478()
getMax()
public static int
convertToSegment(Direction direction)
method_45481(class_2350 arg0)
fromDirection(Direction direction)
public static int
convertToSegment(float rotDegrees)
method_45479(float arg0)
fromYaw(float yaw)
public static Optional<Direction>
convertToDirection(int segment)
method_45480(int arg0)
toDirection(int rotation)
public static float
convertToDegrees(int segment)
method_45482(int arg0)
toDegrees(int rotation)