Package logisticspipes.modules

Examples of logisticspipes.modules.ModuleItemSink


    isDefaultRoute = data.readBoolean();
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    ModuleItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleItemSink.class);
    if(module == null) return null;
    module.setDefaultRoute(isDefaultRoute);
    return new GuiItemSink(player.inventory, module);
  }
View Full Code Here


    return new GuiItemSink(player.inventory, module);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleItemSink.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, module.getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);

    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
View Full Code Here

    return new ItemSinkDefaultPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    ModuleItemSink module = this.getLogisticsModule(player, ModuleItemSink.class);
    if(module == null) return;
    module.setDefaultRoute(isDefault);
  }
View Full Code Here

    return new ItemSinkDefault(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    ModuleItemSink module = this.getLogisticsModule(player, ModuleItemSink.class);
    if(module == null) return;
    module.setDefaultRoute(isFlag());
  }
View Full Code Here

          return true;
        }
        return false;
      }
    }, item);
    itemSinkModule = new ModuleItemSink();
    itemSinkModule.registerHandler(this, this);
  }
View Full Code Here

TOP

Related Classes of logisticspipes.modules.ModuleItemSink

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.