protected void a(NBTTagCompound nbttagcompound) {
    super.a(nbttagcompound);
    NBTTagList nbttaglist = nbttagcompound.m("Items");

    this.a = new ItemStack[this.j_()];

    for (int i0 = 0; i0 < nbttaglist.c(); ++i0) {
      NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.b(i0);
      int i1 = nbttagcompound1.c("Slot") & 255;

      if (i1 >= 0 && i1 < this.a.length) {
        this.a[i1] = ItemStack.a(nbttagcompound1);
      }
    }
  }
Esempio n. 2
0
  public void a(NBTTagCompound nbttagcompound) {
    super.a(nbttagcompound);
    NBTTagList nbttaglist = nbttagcompound.k("Items");

    h = new ItemStack[h_()];
    for (int j = 0; j < nbttaglist.b(); j++) {
      NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.a(j);
      byte byte0 = nbttagcompound1.b("Slot");

      if (byte0 >= 0 && byte0 < h.length) {
        h[byte0] = new ItemStack(nbttagcompound1);
      }
    }

    e = ((int) (nbttagcompound.c("BurnTime")));
    g = ((int) (nbttagcompound.c("CookTime")));
    f = a(h[1]);
  }
  public void a(NBTTagCompound nbttagcompound) {
    super.a(nbttagcompound);
    NBTTagList nbttaglist = nbttagcompound.m("Items");

    this.i = new ItemStack[this.j_()];
    if (nbttagcompound.b("CustomName")) {
      this.s = nbttagcompound.i("CustomName");
    }

    for (int i0 = 0; i0 < nbttaglist.c(); ++i0) {
      NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.b(i0);
      int i1 = nbttagcompound1.c("Slot") & 255;

      if (i1 >= 0 && i1 < this.i.length) {
        this.i[i1] = ItemStack.a(nbttagcompound1);
      }
    }
  }