Exemple #1
0
  public boolean c(Block block) {
    if (block == this.h) {
      return this.i;
    } else {
      this.h = block;
      if (this.n() && this.e.b("CanDestroy", 9)) {
        NBTTagList nbttaglist = this.e.c("CanDestroy", 8);

        for (int i0 = 0; i0 < nbttaglist.c(); ++i0) {
          Block block1 = Block.b(nbttaglist.f(i0));

          if (block1 == block) {
            this.i = true;
            return true;
          }
        }
      }

      this.i = false;
      return false;
    }
  }
Exemple #2
0
  public boolean d(Block block) {
    if (block == this.j) {
      return this.k;
    } else {
      this.j = block;
      if (this.n() && this.e.b("CanPlaceOn", 9)) {
        NBTTagList nbttaglist = this.e.c("CanPlaceOn", 8);

        for (int i0 = 0; i0 < nbttaglist.c(); ++i0) {
          Block block1 = Block.b(nbttaglist.f(i0));

          if (block1 == block) {
            this.k = true;
            return true;
          }
        }
      }

      this.k = false;
      return false;
    }
  }
Exemple #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;
  }