Ejemplo n.º 1
0
  void a(DataInput datainput) {
    a.clear();
    NBTBase nbtbase;

    for (; (nbtbase = NBTBase.b(datainput)).a() != 0; a.put(nbtbase.c(), nbtbase)) {;
    }
  }
  public void func_70383_a(Entity par1Entity) {
    if (field_70391_e != null) {
      NBTTagCompound nbttagcompound = new NBTTagCompound();
      par1Entity.addEntityID(nbttagcompound);
      NBTBase nbtbase;

      for (Iterator iterator = field_70391_e.getTags().iterator();
          iterator.hasNext();
          nbttagcompound.setTag(nbtbase.getName(), nbtbase.copy())) {
        nbtbase = (NBTBase) iterator.next();
      }

      par1Entity.readFromNBT(nbttagcompound);
    }
  }
Ejemplo n.º 3
0
  void a(DataOutput dataoutput) {
    NBTBase nbtbase;

    for (Iterator iterator = a.values().iterator();
        iterator.hasNext();
        NBTBase.a(nbtbase, dataoutput)) {
      nbtbase = (NBTBase) iterator.next();
    }

    dataoutput.writeByte(0);
  }
Ejemplo n.º 4
0
 public void a(String s, NBTBase nbtbase) {
   a.put(s, nbtbase.m(s));
 }