Class RotationSegment

java.lang.Object
net.minecraft.world.level.block.state.properties.RotationSegment

public class RotationSegment extends Object
  • Field Details

  • Constructor Details

    • RotationSegment

      public RotationSegment()
  • Method Details

    • getMaxSegmentIndex

      public static int getMaxSegmentIndex()
    • convertToSegment

      public static int convertToSegment(Direction direction)
    • convertToSegment

      public static int convertToSegment(float angle)
    • convertToDirection

      public static Optional<Direction> convertToDirection(int segment)
    • convertToDegrees

      public static float convertToDegrees(int segment)