Package logisticspipes.modules

Examples of logisticspipes.modules.ModuleModBasedItemSink


    super(id);
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    ModuleModBasedItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleModBasedItemSink.class);
    if(module == null) return null;
    module.readFromNBT(getNbt());
    return new GuiModBasedItemSink(player.inventory, module);
  }
View Full Code Here


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

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleModBasedItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleModBasedItemSink.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
View Full Code Here

    return new ModuleBasedItemSinkList(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    ModuleModBasedItemSink module = this.getLogisticsModule(player, ModuleModBasedItemSink.class);
    if(module == null) return;
    module.readFromNBT(nbt);
    if(MainProxy.isServer(player.getEntityWorld()) && this.getType().isInWorld()) {
      module.ModListChanged();
    }
  }
View Full Code Here

TOP

Related Classes of logisticspipes.modules.ModuleModBasedItemSink

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.