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; } }
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; } }