public class EnumFacingUtils
extends java.lang.Object
| Constructor and Description |
|---|
EnumFacingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.EnumFacing |
getRealSide(net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing side)
Gets the real side of a rotated block.
|
static int |
getRotationCount(net.minecraft.util.EnumFacing facing)
Gets the rotation count for the facing.
|
static int |
getRotationCount(net.minecraft.block.state.IBlockState state)
Gets the rotation count for the
IBlockState |
static net.minecraft.util.EnumFacing |
rotateFacing(net.minecraft.util.EnumFacing facing,
int count)
Rotates facing
count times. |
public static int getRotationCount(net.minecraft.util.EnumFacing facing)
facing - the facingpublic static int getRotationCount(net.minecraft.block.state.IBlockState state)
IBlockStatestate - the statepublic static net.minecraft.util.EnumFacing rotateFacing(net.minecraft.util.EnumFacing facing,
int count)
count times.facing - the facingcount - the countpublic static net.minecraft.util.EnumFacing getRealSide(net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing side)
state - the stateside - the side