Class RotationSegment
java.lang.Object
net.minecraft.world.level.block.state.properties.RotationSegment
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
convertToDegrees
(int p_250653_) convertToDirection
(int p_250978_) static int
convertToSegment
(float p_249057_) static int
convertToSegment
(Direction p_249634_) static int
-
Field Details
-
MAX_SEGMENT_INDEX
private static final int MAX_SEGMENT_INDEX- See Also:
-
NORTH_0
private static final int NORTH_0- See Also:
-
EAST_90
private static final int EAST_90- See Also:
-
SOUTH_180
private static final int SOUTH_180- See Also:
-
WEST_270
private static final int WEST_270- See Also:
-
-
Constructor Details
-
RotationSegment
public RotationSegment()
-
-
Method Details
-
getMaxSegmentIndex
public static int getMaxSegmentIndex() -
convertToSegment
-
convertToSegment
public static int convertToSegment(float p_249057_) -
convertToDirection
-
convertToDegrees
public static float convertToDegrees(int p_250653_)
-