Examples of ItemConduitNetwork


Examples of crazypants.enderio.conduit.item.ItemConduitNetwork

      sb.append(Lang.localize("gui.mjReader.connectionDir"));
      sb.append(" ");
      sb.append(dir);
      sb.append("\n");

      ItemConduitNetwork icn = (ItemConduitNetwork) conduit.getNetwork();
      if(mode.acceptsInput()) {
        color = "\u00A79 ";
        sb.append(color);

        if(input == null) {
          sb.append(Lang.localize("gui.mjReader.extractedItems"));
        } else {
          sb.append(Lang.localize("gui.mjReader.extractedItem"));
          sb.append(" ");
          sb.append(input.getDisplayName());
        }
        sb.append(" ");
        List<String> targets = icn.getTargetsForExtraction(conduit.getLocation().getLocation(dir), conduit, input);
        if(targets.isEmpty()) {
          sb.append(" ");
          sb.append(Lang.localize("gui.mjReader.noOutputs"));
          sb.append(".\n");
        } else {
          sb.append(" ");
          sb.append(Lang.localize("gui.mjReader.insertedInto"));
          sb.append("\n");
          for (String str : targets) {
            sb.append("  - ");
            sb.append(str);
            sb.append(" ");
            sb.append("\n");
          }
        }
      }
      if(mode.acceptsOutput()) {
        color = "\u00A79 ";
        sb.append(color);

        List<String> targets = icn.getInputSourcesFor(conduit, dir, input);
        if(targets.isEmpty()) {
          if(input == null) {
            sb.append(Lang.localize("gui.mjReader.noItems"));
          } else {
            sb.append(Lang.localize("gui.mjReader.noItem"));
View Full Code Here

Examples of crazypants.enderio.conduit.item.ItemConduitNetwork

    } else if(AdvancedLiquidConduit.class.isAssignableFrom(type)) {
      return new AdvancedLiquidConduitNetwork();
    } else if(ILiquidConduit.class.isAssignableFrom(type)) {
      return new LiquidConduitNetwork();
    } else if(IItemConduit.class.isAssignableFrom(type)) {
      return new ItemConduitNetwork();
    } else if(IGasConduit.class.isAssignableFrom(type)) {
      return new GasConduitNetwork();
    } else if(IMEConduit.class.isAssignableFrom(type)) {
      return new MEConduitNetwork();
    }
View Full Code Here

Examples of crazypants.enderio.conduit.item.ItemConduitNetwork

   
    if(message.isClear) {     
      filter.setSnapshot((List<ItemStack>)null);
      System.out.println("PacketExistingItemFilterSnapshot.onMessage: Cleared snapshot");     
    } else {
      ItemConduitNetwork icn = (ItemConduitNetwork)conduit.getNetwork();   
      NetworkedInventory inv = icn.getInventory(conduit, message.dir);
      filter.setSnapshot(inv);       
    }
   
    if(message.isInput) {
      conduit.setInputFilter(message.dir, filter)
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.