Search in sources :

Example 1 with ModuleThaumicAspectSink

use of logisticspipes.modules.ModuleThaumicAspectSink in project LogisticsPipes by RS485.

the class ThaumicAspectSinkModuleSlot method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    ModuleThaumicAspectSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleThaumicAspectSink.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;
}
Also used : DummyContainer(logisticspipes.utils.gui.DummyContainer) ModuleThaumicAspectSink(logisticspipes.modules.ModuleThaumicAspectSink) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Example 2 with ModuleThaumicAspectSink

use of logisticspipes.modules.ModuleThaumicAspectSink in project LogisticsPipes by RS485.

the class ThaumicAspectsSinkList method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    ModuleThaumicAspectSink module = this.getLogisticsModule(player, ModuleThaumicAspectSink.class);
    if (module == null) {
        return;
    }
    module.readFromNBT(getTag());
    if (MainProxy.isServer(player.getEntityWorld()) && getType().isInWorld()) {
        module.aspectListChanged();
    }
}
Also used : ModuleThaumicAspectSink(logisticspipes.modules.ModuleThaumicAspectSink)

Example 3 with ModuleThaumicAspectSink

use of logisticspipes.modules.ModuleThaumicAspectSink in project LogisticsPipes by RS485.

the class ThaumicAspectSinkModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleThaumicAspectSink)) {
        return null;
    }
    dummy.setInventory(new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleThaumicAspectSink(logisticspipes.modules.ModuleThaumicAspectSink) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Example 4 with ModuleThaumicAspectSink

use of logisticspipes.modules.ModuleThaumicAspectSink in project LogisticsPipes by RS485.

the class ThaumicAspectSinkModuleSlot method getClientGui.

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

Aggregations

ModuleThaumicAspectSink (logisticspipes.modules.ModuleThaumicAspectSink)4 ItemIdentifierInventory (logisticspipes.utils.item.ItemIdentifierInventory)2 GuiThaumicAspectSink (logisticspipes.gui.modules.GuiThaumicAspectSink)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1 DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)1