001package net.minecraft.util;
002
003public class Facing
004{
005    /**
006     * Converts a side to the opposite side. This is the same as XOR'ing it with 1.
007     */
008    public static final int[] oppositeSide = new int[] {1, 0, 3, 2, 5, 4};
009
010    /**
011     * gives the offset required for this axis to get the block at that side.
012     */
013    public static final int[] offsetsXForSide = new int[] {0, 0, 0, 0, -1, 1};
014
015    /**
016     * gives the offset required for this axis to get the block at that side.
017     */
018    public static final int[] offsetsYForSide = new int[] { -1, 1, 0, 0, 0, 0};
019
020    /**
021     * gives the offset required for this axis to get the block at that side.
022     */
023    public static final int[] offsetsZForSide = new int[] {0, 0, -1, 1, 0, 0};
024    public static final String[] facings = new String[] {"DOWN", "UP", "NORTH", "SOUTH", "WEST", "EAST"};
025}