Exemplo n.º 1
0
  public void a(Enchantment enchantment, int i0) {
    if (this.e == null) {
      this.d(new NBTTagCompound());
    }

    if (!this.e.b("ench", 9)) {
      this.e.a("ench", (NBTBase) (new NBTTagList()));
    }

    NBTTagList nbttaglist = this.e.c("ench", 10);
    NBTTagCompound nbttagcompound = new NBTTagCompound();

    nbttagcompound.a("id", (short) enchantment.B);
    nbttagcompound.a("lvl", (short) ((byte) i0));
    nbttaglist.a((NBTBase) nbttagcompound);
  }