public static EnumFacing getFrontDirection(MetaUsage metaUsage, IBlockState state) { EnumFacing orientation; switch (metaUsage) { case HORIZROTATION: orientation = BlockTools.getOrientationHoriz(state); break; case ROTATION: orientation = BlockTools.getOrientation(state); break; case NONE: default: orientation = EnumFacing.SOUTH; break; } return orientation; }