类 RotationSegment

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

public class RotationSegment extends Object
  • 字段详细资料

    • SEGMENTED_ANGLE16

      private static final SegmentedAnglePrecision SEGMENTED_ANGLE16
    • MAX_SEGMENT_INDEX

      private static final int MAX_SEGMENT_INDEX
    • NORTH_0

      private static final int NORTH_0
      另请参阅:
    • EAST_90

      private static final int EAST_90
      另请参阅:
    • SOUTH_180

      private static final int SOUTH_180
      另请参阅:
    • WEST_270

      private static final int WEST_270
      另请参阅:
  • 构造器详细资料

    • RotationSegment

      public RotationSegment()
  • 方法详细资料

    • getMaxSegmentIndex

      public static int getMaxSegmentIndex()
    • convertToSegment

      public static int convertToSegment(Direction p_249634_)
    • convertToSegment

      public static int convertToSegment(float p_249057_)
    • convertToDirection

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

      public static float convertToDegrees(int p_250653_)