int toY = reciever.yCoord + 1;
int toZ = reciever.zCoord;
MinecraftServer minecraftserver = MinecraftServer.getServer();
WorldServer worldserver1 = minecraftserver.worldServerForDimension(toDimension);
EntityMinecart newCart = (EntityMinecart) EntityList.createEntityByName(EntityList.getEntityString(cart), worldserver1);
if(newCart == null) {
return null;
}
NBTTagCompound nbttagcompound = new NBTTagCompound();
cart.writeToNBT(nbttagcompound);
newCart.readFromNBT(nbttagcompound);
newCart.dimension = toDimension;
newCart.setLocationAndAngles(toX + 0.5, toY, toZ + 0.5, cart.rotationYaw, cart.rotationPitch);
newCart.isDead = false;
List<Entity> result = new ArrayList<Entity>();
result.add(newCart);