Class Cardinals
java.lang.Object
etithespirit.orimod.info.coordinate.Cardinals
Cardinals stores utilities related to the six adjacent directions around a cube, or, the six "cardinal" directions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.Vec3i[]
All adjacent directions sorted by test order.static final net.minecraft.core.Vec3i[]
All diagonal directions sorted by test order.static final net.minecraft.core.Direction[]
All Direction enums in the same order asADJACENTS_IN_ORDER
static final net.minecraft.core.Vec3i[]
All adjacent directions sorted by test order, excluding up and down.static final net.minecraft.core.Vec3i[]
All diagonal directions sorted by test order. -
Method Summary
-
Field Details
-
ADJACENTS_IN_ORDER
public static final net.minecraft.core.Vec3i[] ADJACENTS_IN_ORDERAll 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_ORDERAll Direction enums in the same order asADJACENTS_IN_ORDER
-
DIAGONALS_IN_ORDER
public static final net.minecraft.core.Vec3i[] DIAGONALS_IN_ORDERAll 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_ORDERAll adjacent directions sorted by test order, excluding up and down. -
LATERAL_DIAGONALS_IN_ORDER
public static final net.minecraft.core.Vec3i[] LATERAL_DIAGONALS_IN_ORDERAll 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.
-