Package Hexel.things.types

Examples of Hexel.things.types.InventoryOwner.addBlock()


            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
Copyright © 2018 www.massapi.com. 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.