Package Hexel.things.types

Examples of Hexel.things.types.InventoryOwner


                  this.chunks.setBlock(addBlockAction.x,
                      addBlockAction.y, addBlockAction.z,
                      original, tmp, tmp2, null);
                else {
                  if (thing instanceof InventoryOwner) {
                    InventoryOwner inventoryOwner = (InventoryOwner) thing;
                    inventoryOwner.rmBlock(addBlockAction.block);
                  }
                }
                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;
                inventoryOwner.addBlock(b);
              }
            } else {
              Block newB = BlockTools.updateHealth(b, b.getHealth()-1);
              this.chunks.setBlock(rmBlockAction.x, rmBlockAction.y, rmBlockAction.z, newB, tmp, tmp2, null);
            }
View Full Code Here

TOP

Related Classes of Hexel.things.types.InventoryOwner

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.