YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.common.ForgeDirection Enum Reference

Public Member Functions

ForgeDirection getOpposite ()
 
ForgeDirection getRotation (ForgeDirection axis)
 

Static Public Member Functions

static ForgeDirection getOrientation (int id)
 

Public Attributes

 DOWN =(0, -1, 0)
 
 UP =(0, 1, 0)
 
 NORTH =(0, 0, -1)
 
 SOUTH =(0, 0, 1)
 
 WEST =(-1, 0, 0)
 
 EAST =(1, 0, 0)
 
 UNKNOWN =(0, 0, 0)
 
final int offsetX
 
final int offsetY
 
final int offsetZ
 
final int flag
 

Static Public Attributes

staticfinal ForgeDirection[] VALID_DIRECTIONS = {DOWN, UP, NORTH, SOUTH, WEST, EAST}
 
staticfinal int[] OPPOSITES = {1, 0, 3, 2, 5, 4, 6}
 
staticfinal int[][] ROTATION_MATRIX
 

Member Function Documentation

ForgeDirection net.minecraftforge.common.ForgeDirection.getOpposite ( )
static ForgeDirection net.minecraftforge.common.ForgeDirection.getOrientation ( int  id)
static
ForgeDirection net.minecraftforge.common.ForgeDirection.getRotation ( ForgeDirection  axis)

Member Data Documentation

net.minecraftforge.common.ForgeDirection.DOWN =(0, -1, 0)

-Y

net.minecraftforge.common.ForgeDirection.EAST =(1, 0, 0)

+X

final int net.minecraftforge.common.ForgeDirection.flag
net.minecraftforge.common.ForgeDirection.NORTH =(0, 0, -1)

-Z

final int net.minecraftforge.common.ForgeDirection.offsetX
final int net.minecraftforge.common.ForgeDirection.offsetY
final int net.minecraftforge.common.ForgeDirection.offsetZ
static final int [] net.minecraftforge.common.ForgeDirection.OPPOSITES = {1, 0, 3, 2, 5, 4, 6}
static
static final int [][] net.minecraftforge.common.ForgeDirection.ROTATION_MATRIX
static
Initial value:
= {
{0, 1, 4, 5, 3, 2, 6},
{0, 1, 5, 4, 2, 3, 6},
{5, 4, 2, 3, 0, 1, 6},
{4, 5, 2, 3, 1, 0, 6},
{2, 3, 1, 0, 4, 5, 6},
{3, 2, 0, 1, 4, 5, 6},
{0, 1, 2, 3, 4, 5, 6},
}
net.minecraftforge.common.ForgeDirection.SOUTH =(0, 0, 1)

+Z

net.minecraftforge.common.ForgeDirection.UNKNOWN =(0, 0, 0)

Used only by getOrientation, for invalid inputs

net.minecraftforge.common.ForgeDirection.UP =(0, 1, 0)

+Y

static final ForgeDirection [] net.minecraftforge.common.ForgeDirection.VALID_DIRECTIONS = {DOWN, UP, NORTH, SOUTH, WEST, EAST}
static
net.minecraftforge.common.ForgeDirection.WEST =(-1, 0, 0)

-X


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