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 pDirection)
    • convertToSegment

      public static int convertToSegment(float pAngle)
    • convertToDirection

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

      public static float convertToDegrees(int pSegment)