Search in sources :

Example 1 with ModuleApiaristSink

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

the class ApiaristSinkModuleSlot method getClientGui.

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

Example 2 with ModuleApiaristSink

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

the class ApiaristSinkModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    SimpleServiceLocator.forestryProxy.syncTracker(player.getEntityWorld(), player);
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleApiaristSink)) {
        return null;
    }
    return dummy;
}
Also used : ModuleApiaristSink(logisticspipes.modules.ModuleApiaristSink) DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer)

Example 3 with ModuleApiaristSink

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

the class ApiaristSinkModuleSlot method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    SimpleServiceLocator.forestryProxy.syncTracker(player.getEntityWorld(), player);
    ModuleApiaristSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleApiaristSink.class);
    if (module == null) {
        return null;
    }
    return new DummyContainer(player.inventory, null);
}
Also used : ModuleApiaristSink(logisticspipes.modules.ModuleApiaristSink) DummyContainer(logisticspipes.utils.gui.DummyContainer)

Aggregations

ModuleApiaristSink (logisticspipes.modules.ModuleApiaristSink)3 GuiApiaristSink (logisticspipes.gui.modules.GuiApiaristSink)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1 DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)1