Examples of moveBackwards()


Examples of buildcraft.api.core.Position.moveBackwards()

        stack.stackSize--;
        p.moveForwards(1.0);
        moves++;
      }
      if (getWorld().getBlock((int) p.x, (int) p.y, (int) p.z) != Blocks.air) {
        p.moveBackwards(1.0);
        stack.stackSize++;
        getWorld().setBlockToAir((int) p.x, (int) p.y, (int) p.z);
      }
     
      BuildCraftTransport.pipeItemsStripes.onItemUse(new ItemStack(
View Full Code Here

Examples of buildcraft.api.core.Position.moveBackwards()

    }

    if (BlockGenericPipe.isValid(pipe) && pipe.transport instanceof PipeTransportItems && isPipeConnected(from)) {
      if (doAdd) {
        Position itemPos = new Position(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5, from.getOpposite());
        itemPos.moveBackwards(0.4);

        TravelingItem pipedItem = TravelingItem.make(itemPos.x, itemPos.y, itemPos.z, payload);
        pipedItem.color = color;
        ((PipeTransportItems) pipe.transport).injectItem(pipedItem, itemPos.orientation);
      }
View Full Code Here

Examples of powercrystals.core.position.BlockPosition.moveBackwards()

      }
      EntityAgeable a = (EntityAgeable)o;
      if((a.getGrowingAge() < 0 && !_moveOld) || (a.getGrowingAge() >= 0 && _moveOld))
      {
        BlockPosition bp = BlockPosition.fromFactoryTile(this);
        bp.moveBackwards(1);
        a.setPosition(bp.x + 0.5, bp.y + 0.5, bp.z + 0.5);
       
        return true;
      }
    }
View Full Code Here

Examples of powercrystals.core.position.BlockPosition.moveBackwards()

    if (side <= 1)
    {
      bp = new BlockPosition(x, y, z, ForgeDirection.NORTH);
      bp.moveRight(1);
      sides[0] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveBackwards(1);
      sides[4] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveLeft(1);
      sides[1] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveLeft(1);
      sides[5] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
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.