Esempio n. 1
0
  public void doPhysics(World world, int i, int j, int k, int l) {
    if (!world.isStatic) {
      int i1 = world.getData(i, j, k);
      boolean flag = canPlace(world, i, j, k);

      if (flag) {
        l(world, i, j, k);
      } else {
        c(world, i, j, k, i1, 0);
        world.setTypeId(i, j, k, 0);
      }

      super.doPhysics(world, i, j, k, l);
    }
  }
Esempio n. 2
0
 @Override
 public void doPhysics(World world, int i, int j, int k, int l) {
   parent.doPhysics(world, i, j, k, l);
 }
 /**
  * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed
  * (coordinates passed are their own) Args: x, y, z, neighbor blockID
  */
 public void doPhysics(World var1, int var2, int var3, int var4, int var5) {
   super.doPhysics(var1, var2, var3, var4, var5);
   this.checkFlowerChange(var1, var2, var3, var4);
 }