code: public static int getRotationCount(IBlockState state)
  	{
  		EnumFacing direction = DirectionalComponent.getDirection(state);
  		return EnumFacingUtils.getRotationCount(direction);
  	}
docs: Gets the rotation count for the {@link IBlockState}
  
  @param state the state
  @return the rotation count