public static boolean teleportEntity(Entity entity, int destinationDimension, ITeleporter teleporter)
{
return teleportEntity(entity, destinationDimension, teleporter, entity.posX, entity.posY, entity.posZ);
}
public static boolean teleportEntity(Entity entity, int destinationDimension, ITeleporter teleporter, double x, double y, double z)
<BUG>{
if(!ForgeHooks.onTravelToDimension(entity, destinationDimension))</BUG>
return false;
MinecraftServer mcServer = entity.getServer();
int prevDimension = entity.dimension;

public static boolean teleportEntity(Entity entity, int destinationDimension, ITeleporter teleporter)
{
return teleportEntity(entity, destinationDimension, teleporter, entity.posX, entity.posY, entity.posZ);
}
public static boolean teleportEntity(Entity entity, int destinationDimension, ITeleporter teleporter, double x, double y, double z)
{
if(destinationDimension == entity.dimension)
return localTeleport(entity, teleporter, x, y, z);
if(entity.worldObj.isRemote)
throw new IllegalArgumentException("Shouldn't do teleporting with a clientside entity.");
if(!ForgeHooks.onTravelToDimension(entity, destinationDimension))
return false;
MinecraftServer mcServer = entity.getServer();
int prevDimension = entity.dimension;
