public void func_70307_a(NBTTagCompound p_70307_1_) {
    super.func_70307_a(p_70307_1_);
    NBTTagList var2 = p_70307_1_.func_74761_m("Items");
    this.field_70359_a = new ItemStack[this.func_70302_i_()];

    for (int var3 = 0; var3 < var2.func_74745_c(); ++var3) {
      NBTTagCompound var4 = (NBTTagCompound) var2.func_74743_b(var3);
      byte var5 = var4.func_74771_c("Slot");
      if (var5 >= 0 && var5 < this.field_70359_a.length) {
        this.field_70359_a[var5] = ItemStack.func_77949_a(var4);
      }
    }

    this.field_70357_b = p_70307_1_.func_74765_d("BrewTime");
    if (p_70307_1_.func_74764_b("CustomName")) {
      this.field_94132_e = p_70307_1_.func_74779_i("CustomName");
    }
  }
Exemplo n.º 2
0
 public void func_70307_a(NBTTagCompound p_70307_1_) {
   super.func_70307_a(p_70307_1_);
   this.field_82133_f = p_70307_1_.func_74762_e("Primary");
   this.field_82134_g = p_70307_1_.func_74762_e("Secondary");
   this.field_82136_e = p_70307_1_.func_74762_e("Levels");
 }