YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.Facing Class Reference

Static Public Attributes

static final int[] oppositeSide = new int[] {1, 0, 3, 2, 5, 4}
 
static final int[] offsetsXForSide = new int[] {0, 0, 0, 0, -1, 1}
 
static final int[] offsetsYForSide = new int[] { -1, 1, 0, 0, 0, 0}
 
static final int[] offsetsZForSide = new int[] {0, 0, -1, 1, 0, 0}
 
static final String[] facings = new String[] {"DOWN", "UP", "NORTH", "SOUTH", "WEST", "EAST"}
 

Member Data Documentation

final String [] net.minecraft.util.Facing.facings = new String[] {"DOWN", "UP", "NORTH", "SOUTH", "WEST", "EAST"}
static
final int [] net.minecraft.util.Facing.offsetsXForSide = new int[] {0, 0, 0, 0, -1, 1}
static

gives the offset required for this axis to get the block at that side.

final int [] net.minecraft.util.Facing.offsetsYForSide = new int[] { -1, 1, 0, 0, 0, 0}
static

gives the offset required for this axis to get the block at that side.

final int [] net.minecraft.util.Facing.offsetsZForSide = new int[] {0, 0, -1, 1, 0, 0}
static

gives the offset required for this axis to get the block at that side.

final int [] net.minecraft.util.Facing.oppositeSide = new int[] {1, 0, 3, 2, 5, 4}
static

Converts a side to the opposite side. This is the same as XOR'ing it with 1.


The documentation for this class was generated from the following file: