Exemplo n.º 1
0
  public boolean canPlace(World world, int i, int j, int k) {
    Block block = world.getType(i, j - 1, k);

    return block != Blocks.ICE && block != Blocks.PACKED_ICE
        ? (block.getMaterial() == Material.LEAVES
            ? true
            : (block == this && (world.getData(i, j - 1, k) & 7) == 7
                ? true
                : block.c() && block.material.isSolid()))
        : false;
  }
Exemplo n.º 2
0
 @Override
 public int c() {
   return parent.c();
 }