public class DirectionHelpers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<net.minecraftforge.common.util.ForgeDirection> |
DIRECTIONS
A list of all the
ForgeDirection. |
static java.util.List<DirectionCorner> |
DIRECTIONS_CORNERS
A list of all the
DirectionCorner |
static net.minecraftforge.common.util.ForgeDirection[] |
ENTITYFACING
The facing directions of an entity, used in
getEntityFacingDirection(EntityLivingBase). |
static net.minecraftforge.common.util.ForgeDirection[][] |
TEXTURESIDE_ORIENTATION
A double array that contains the visual side.
|
| Constructor and Description |
|---|
DirectionHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Iterator<net.minecraftforge.common.util.ForgeDirection> |
getDirectionIterator()
Get an iterator for all the
ForgeDirection. |
static net.minecraftforge.common.util.ForgeDirection |
getEntityFacingDirection(net.minecraft.entity.EntityLivingBase entity)
Get the ForgeDirection the entity is facing, only vertical directions.
|
static net.minecraftforge.common.util.ForgeDirection |
getForgeDirectionFromXSign(int xSign)
Get the
ForgeDirection from the sign of an X offset. |
static net.minecraftforge.common.util.ForgeDirection |
getForgeDirectionFromZSing(int zSign)
Get the
ForgeDirection from the sign of an Z offset. |
public static java.util.List<net.minecraftforge.common.util.ForgeDirection> DIRECTIONS
ForgeDirection.public static java.util.List<DirectionCorner> DIRECTIONS_CORNERS
DirectionCornerpublic static final net.minecraftforge.common.util.ForgeDirection[] ENTITYFACING
getEntityFacingDirection(EntityLivingBase).public static net.minecraftforge.common.util.ForgeDirection[][] TEXTURESIDE_ORIENTATION
public static java.util.Iterator<net.minecraftforge.common.util.ForgeDirection> getDirectionIterator()
ForgeDirection.ForgeDirection iteratorDIRECTIONS,
ForgeDirectionpublic static net.minecraftforge.common.util.ForgeDirection getEntityFacingDirection(net.minecraft.entity.EntityLivingBase entity)
entity - The entity that is facing a direction.ForgeDirection the entity is facing.public static net.minecraftforge.common.util.ForgeDirection getForgeDirectionFromXSign(int xSign)
ForgeDirection from the sign of an X offset.xSign - X offset from somewhere.ForgeDirection for the offset.public static net.minecraftforge.common.util.ForgeDirection getForgeDirectionFromZSing(int zSign)
ForgeDirection from the sign of an Z offset.zSign - Z offset from somewhere.ForgeDirection for the offset.