Search in sources :

Example 1 with GuiSneakyConfigurator

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

the class SneakyModuleInSlotGuiProvider method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player.getEntityWorld(), LogisticsModule.class);
    if (!(module instanceof SneakyDirection && module instanceof Gui)) {
        return null;
    }
    ((SneakyDirection) module).setSneakyDirection(sneakyOrientation);
    return new GuiSneakyConfigurator(player.inventory, module);
}
Also used : LogisticsModule(logisticspipes.modules.LogisticsModule) GuiSneakyConfigurator(logisticspipes.gui.modules.GuiSneakyConfigurator) SneakyDirection(network.rs485.logisticspipes.module.SneakyDirection) Gui(network.rs485.logisticspipes.module.Gui)

Aggregations

GuiSneakyConfigurator (logisticspipes.gui.modules.GuiSneakyConfigurator)1 LogisticsModule (logisticspipes.modules.LogisticsModule)1 Gui (network.rs485.logisticspipes.module.Gui)1 SneakyDirection (network.rs485.logisticspipes.module.SneakyDirection)1