Esempio n. 1
0
  public boolean d(Block block) {
    if (block == this.j) {
      return this.k;
    } else {
      this.j = block;
      if (this.hasTag() && this.tag.hasKeyOfType("CanPlaceOn", 9)) {
        NBTTagList nbttaglist = this.tag.getList("CanPlaceOn", 8);

        for (int i = 0; i < nbttaglist.size(); ++i) {
          Block block1 = Block.getByName(nbttaglist.getString(i));

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

      this.k = false;
      return false;
    }
  }