Example #1
0
  public String q() {
    String s0 = this.b().a(this);

    if (this.e != null && this.e.b("display", 10)) {
      NBTTagCompound nbttagcompound = this.e.m("display");

      if (nbttagcompound.b("Name", 8)) {
        s0 = nbttagcompound.j("Name");
      }
    }

    return s0;
  }
Example #2
0
  public void c(NBTTagCompound nbttagcompound) {
    if (nbttagcompound.b("id", 8)) {
      this.d = Item.d(nbttagcompound.j("id"));
    } else {
      this.d = Item.b(nbttagcompound.e("id"));
    }

    this.b = nbttagcompound.d("Count");
    this.f = nbttagcompound.e("Damage");
    if (this.f < 0) {
      this.f = 0;
    }

    if (nbttagcompound.b("tag", 10)) {
      this.e = nbttagcompound.m("tag");
      if (this.d != null) {
        this.d.a(this.e);
      }
    }
  }
Example #3
0
  public Multimap B() {
    Object object;

    if (this.n() && this.e.b("AttributeModifiers", 9)) {
      object = HashMultimap.create();
      NBTTagList nbttaglist = this.e.c("AttributeModifiers", 10);

      for (int i0 = 0; i0 < nbttaglist.c(); ++i0) {
        NBTTagCompound nbttagcompound = nbttaglist.b(i0);
        AttributeModifier attributemodifier = SharedMonsterAttributes.a(nbttagcompound);

        if (attributemodifier != null
            && attributemodifier.a().getLeastSignificantBits() != 0L
            && attributemodifier.a().getMostSignificantBits() != 0L) {
          ((Multimap) object).put(nbttagcompound.j("AttributeName"), attributemodifier);
        }
      }
    } else {
      object = this.b().i();
    }

    return (Multimap) object;
  }