Class Cardinals

java.lang.Object
etithespirit.orimod.info.coordinate.Cardinals

public final class Cardinals extends Object
Cardinals stores utilities related to the six adjacent directions around a cube, or, the six "cardinal" directions.
  • Field Details

    • ADJACENTS_IN_ORDER

      public static final net.minecraft.core.Vec3i[] ADJACENTS_IN_ORDER
      All adjacent directions sorted by test order. The test order is: EAST, WEST, UP, DOWN, NORTH, SOUTH
    • DIRECTIONS_IN_ORDER

      public static final net.minecraft.core.Direction[] DIRECTIONS_IN_ORDER
      All Direction enums in the same order as ADJACENTS_IN_ORDER
    • DIAGONALS_IN_ORDER

      public static final net.minecraft.core.Vec3i[] DIAGONALS_IN_ORDER
      All diagonal directions sorted by test order. This fills a 3x3 cube, with the exception of the local position, and all adjacent positions (which are tested separately)
    • LATERAL_ADJACENTS_IN_ORDER

      public static final net.minecraft.core.Vec3i[] LATERAL_ADJACENTS_IN_ORDER
      All adjacent directions sorted by test order, excluding up and down.
    • LATERAL_DIAGONALS_IN_ORDER

      public static final net.minecraft.core.Vec3i[] LATERAL_DIAGONALS_IN_ORDER
      All diagonal directions sorted by test order. This fills a 3x3 cube, with the exception of the local position, and all adjacent positions (which are tested separately), and all vertical movements.