Package buildcraft.api.core

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


    }

    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

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.