Package logisticspipes.pipes.signs

Examples of logisticspipes.pipes.signs.IPipeSign


        pipe.activatePipeSign(dir, player);
        return true;
      } else if(mode >= 0 && mode < signTypes.size()) {
        Class<? extends IPipeSign> signClass = signTypes.get(mode);
        try {
          IPipeSign sign = signClass.newInstance();
          if(sign.isAllowedFor(pipe)) {
            itemStack.damageItem(1, player);
            sign.addSignTo(pipe, dir, player);
            return true;
          } else {
            return false;
          }
        } catch(InstantiationException e) {
View Full Code Here


 
  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null) return;
    IPipeSign sign = ((CoreRoutedPipe)pipe.pipe).getPipeSign(ForgeDirection.getOrientation(getInteger()));
    if(sign == null) return;
    ((ItemAmountPipeSign)sign).amount = getInteger2();
    ((ItemAmountPipeSign)sign).itemTypeInv.setInventorySlotContents(0, stack);
  }
View Full Code Here

TOP

Related Classes of logisticspipes.pipes.signs.IPipeSign

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.