Search in sources :

Example 1 with GuiStringBasedItemSink

use of logisticspipes.gui.modules.GuiStringBasedItemSink in project LogisticsPipes by RS485.

the class StringBasedItemSinkModuleGuiSlot method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    IStringBasedModule module = this.getLogisticsModule(player.getEntityWorld(), IStringBasedModule.class);
    if (module == null) {
        return null;
    }
    module.readFromNBT(getNbt());
    return new GuiStringBasedItemSink(player.inventory, module);
}
Also used : IStringBasedModule(logisticspipes.interfaces.IStringBasedModule) GuiStringBasedItemSink(logisticspipes.gui.modules.GuiStringBasedItemSink)

Aggregations

GuiStringBasedItemSink (logisticspipes.gui.modules.GuiStringBasedItemSink)1 IStringBasedModule (logisticspipes.interfaces.IStringBasedModule)1