public IBlockState withRotation(IBlockState state,Rotation rot){
  return state.withProperty(FACING,rot.rotate((EnumFacing)state.getValue(FACING)));
}

public IBlockState withRotation ( IBlockState state , Rotation rot ) { return state . withProperty ( FACING , rot . rotate ( ( EnumFacing ) state . getValue ( FACING ) ) ) ; }
returns the blockstate with the given rotation from the passed blockstate . if inapplicable , returns the passed blockstate .
