return ForgeDirection.VALID_DIRECTIONS[getEntityFacingCardinal(living)];
}
public static void transferEntityToWorld(Entity entity, WorldServer oldWorld, WorldServer newWorld) {
WorldProvider pOld = oldWorld.provider;
WorldProvider pNew = newWorld.provider;
double moveFactor = pOld.getMovementFactor() / pNew.getMovementFactor();
double x = entity.posX * moveFactor;
double z = entity.posZ * moveFactor;
oldWorld.theProfiler.startSection("placing");
x = MathHelper.clamp_double(x, -29999872, 29999872);