public void load(T entity,CompoundTag tag){
  if (tag.isList("Motion",TagType.DOUBLE)) {
    entity.setVelocity(NbtSerialization.listToVector(tag.getList("Motion",TagType.DOUBLE)));
  }
  if (tag.isFloat("FallDistance")) {
    entity.setFallDistance(tag.getFloat("FallDistance"));
  }
  if (tag.isShort("Fire")) {
    entity.setFireTicks(tag.getShort("Fire"));
  }
  if (tag.isByte("OnGround")) {
    entity.setOnGround(tag.getBool("OnGround"));
  }
  if (tag.isByte("NoGravity")) {
    entity.setGravity(!tag.getBool("NoGravity"));
  }
  if (tag.isByte("Silent")) {
    entity.setSilent(tag.getBool("Silent"));
  }
  if (tag.isLong("UUIDMost") && tag.isLong("UUIDLeast")) {
    UUID uuid=new UUID(tag.getLong("UUIDMost"),tag.getLong("UUIDLeast"));
    entity.setUniqueId(uuid);
  }
 else   if (tag.isString("UUID")) {
    UUID uuid=UUID.fromString(tag.getString("UUID"));
    entity.setUniqueId(uuid);
  }
}

public void load ( T entity , CompoundTag tag ) { if ( tag . isList ( "Motion" , TagType . DOUBLE ) ) { entity . setVelocity ( NbtSerialization . listToVector ( tag . getList ( "Motion" , TagType . DOUBLE ) ) ) ; } if ( tag . isFloat ( "FallDistance" ) ) { entity . setFallDistance ( tag . getFloat ( "FallDistance" ) ) ; } if ( tag . isShort ( "Fire" ) ) { entity . setFireTicks ( tag . getShort ( "Fire" ) ) ; } if ( tag . isByte ( "OnGround" ) ) { entity . setOnGround ( tag . getBool ( "OnGround" ) ) ; } if ( tag . isByte ( "NoGravity" ) ) { entity . setGravity ( ! tag . getBool ( "NoGravity" ) ) ; } if ( tag . isByte ( "Silent" ) ) { entity . setSilent ( tag . getBool ( "Silent" ) ) ; } if ( tag . isLong ( "UUIDMost" ) && tag . isLong ( "UUIDLeast" ) ) { UUID uuid = new UUID ( tag . getLong ( "UUIDMost" ) , tag . getLong ( "UUIDLeast" ) ) ; entity . setUniqueId ( uuid ) ; } else if ( tag . isString ( "UUID" ) ) { UUID uuid = UUID . fromString ( tag . getString ( "UUID" ) ) ; entity . setUniqueId ( uuid ) ; } }
load data into an existing entity of the appropriate type from the given compound tag .
