Example #1
0
 public void CheckBlock(int x, int y, int z, int addX, int addY, int addZ, Block otherblock, World world)
 {
     Block other = world.GetBlock (x + addX, y + addY, z + addZ);
     if (other == Block.empty) {
         world.SetBlockSilent (x + addX, y + addY, z + addZ, Block.water);
         world.AddToUpdateQueue (x + addX, y + addY, z + addZ, x, y, z, otherblock);
     }
 }
Example #2
0
 public void GenerateFeature(int x, int y, int z, World world, Chunk chunk)
 {
     world.SetBlockSilent(x,y,z,Block.leaf);
 }