Package logisticspipes.modules

Examples of logisticspipes.modules.ModuleOreDictItemSink


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


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

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleOreDictItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleOreDictItemSink.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 OreDictItemSinkList(getId());
  }

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

TOP

Related Classes of logisticspipes.modules.ModuleOreDictItemSink

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.