Package Hexel.things.blockManipulation

Examples of Hexel.things.blockManipulation.RemoveBlock


        Vector3i closestBlock = blocksAttacking.get(blocksAttacking.size()-1);
        Vector3i tmp3i = new Vector3i();
        Block b = thingBridge.engine.chunks.getBlock(closestBlock.x, closestBlock.y, closestBlock.z, tmp3i, (Chunk)null);
        if (!(b instanceof BlockEmpty || b instanceof BlockWater)){
          if (closestBlock != null) {
            RemoveBlock ab = new RemoveBlock();
            ab.x = closestBlock.x;
            ab.y = closestBlock.y;
            ab.z = closestBlock.z;
            return ab;
          }
View Full Code Here


                }
                Resources.vector3dResourcePool.recycle(offset);
              }
            }
          } else if (action instanceof RemoveBlock) {
            RemoveBlock rmBlockAction = (RemoveBlock) action;
            Block b = this.chunks.getBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, tmp, (Chunk)null);
            if (b.getHealth() < 0) {
              this.chunks.setBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, BlockEmpty.Make(0), tmp, tmp2, null);
              if (thing instanceof InventoryOwner) {
                InventoryOwner inventoryOwner = (InventoryOwner) thing;
View Full Code Here

TOP

Related Classes of Hexel.things.blockManipulation.RemoveBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.