Package Hexel.things.blockManipulation

Examples of Hexel.things.blockManipulation.AddBlock


      Vector3i closestBlock = this.thingBridge
          .getClosestEmptyBlockOnVector(
              new Vector3d(getCameraX(), getCameraY(),
                  getCameraZ()), dir);
      if (closestBlock != null) {
        AddBlock ab = new AddBlock();
        ab.x = closestBlock.x;
        ab.y = closestBlock.y;
        ab.z = closestBlock.z;
        ab.block = getBlockToPlace();
        return ab;
View Full Code Here


        }
        if (thing instanceof BlockManipulator) {
          BlockAction action = ((BlockManipulator) thing)
              .getBlockAction();
          if (action instanceof AddBlock) {
            AddBlock addBlockAction = (AddBlock) action;
            Block original = this.chunks.getBlock(addBlockAction.x, addBlockAction.y, addBlockAction.z, tmp, (Chunk)null);
            this.chunks.setBlock(addBlockAction.x, addBlockAction.y, addBlockAction.z, addBlockAction.block, tmp, tmp2, null);
            if (thing instanceof Volumetric) {
              if (thing instanceof Cuboid) {
                Vector3d offset = Resources.vector3dResourcePool.aquire();
View Full Code Here

TOP

Related Classes of Hexel.things.blockManipulation.AddBlock

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.