Ejemplo n.º 1
0
  public void remove(World world, int i, int j, int k, int l, int i1) {
    super.remove(world, i, j, k, l, i1);
    if (!world.isStatic) {
      world.applyPhysics(i, j + 1, k, this.id);
      world.applyPhysics(i, j - 1, k, this.id);
      world.applyPhysics(i + 1, j, k, this.id);
      world.applyPhysics(i - 1, j, k, this.id);
      world.applyPhysics(i, j, k + 1, this.id);
      world.applyPhysics(i, j, k - 1, this.id);
      l(world, i, j, k);
      n(world, i - 1, j, k);
      n(world, i + 1, j, k);
      n(world, i, j, k - 1);
      n(world, i, j, k + 1);
      if (world.s(i - 1, j, k)) n(world, i - 1, j + 1, k);
      else {
        n(world, i - 1, j - 1, k);
      }

      if (world.s(i + 1, j, k)) n(world, i + 1, j + 1, k);
      else {
        n(world, i + 1, j - 1, k);
      }

      if (world.s(i, j, k - 1)) n(world, i, j + 1, k - 1);
      else {
        n(world, i, j - 1, k - 1);
      }

      if (world.s(i, j, k + 1)) n(world, i, j + 1, k + 1);
      else n(world, i, j - 1, k + 1);
    }
  }
Ejemplo n.º 2
0
  public void remove(World world, int i, int j, int k) {
    int l = world.getData(i, j, k);

    if (l > 0) {
      world.applyPhysics(i, j, k, this.id);
      world.applyPhysics(i, j - 1, k, this.id);
    }

    super.remove(world, i, j, k);
  }
Ejemplo n.º 3
0
 @Override
 public void remove(World world, int i, int j, int k) {
   parent.remove(world, i, j, k);
 }