MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / copyDataFromOld

Method copyDataFromOld

src/main/java/net/minecraft/entity/Entity.java:2498–2507  ·  view source on GitHub ↗

Prepares this entity in new dimension by copying NBT data from entity in old dimension

(Entity entityIn)

Source from the content-addressed store, hash-verified

2496 * Prepares this entity in new dimension by copying NBT data from entity in old dimension
2497 */
2498 public void copyDataFromOld(Entity entityIn)
2499 {
2500 NBTTagCompound nbttagcompound = new NBTTagCompound();
2501 entityIn.writeToNBT(nbttagcompound);
2502 this.readFromNBT(nbttagcompound);
2503 this.timeUntilPortal = entityIn.timeUntilPortal;
2504 this.field_181016_an = entityIn.field_181016_an;
2505 this.field_181017_ao = entityIn.field_181017_ao;
2506 this.field_181018_ap = entityIn.field_181018_ap;
2507 }
2508
2509 /**
2510 * Teleports the entity to another dimension. Params: Dimension number to teleport to

Callers 1

travelToDimensionMethod · 0.95

Calls 2

readFromNBTMethod · 0.95
writeToNBTMethod · 0.45

Tested by

no test coverage detected