Search in sources :

Example 1 with SneakyDirection

use of network.rs485.logisticspipes.module.SneakyDirection in project LogisticsPipes by RS485.

the class SneakyModuleDirectionUpdate method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    SneakyDirection sneakyModule = this.getLogisticsModule(player, SneakyDirection.class);
    if (sneakyModule == null) {
        return;
    }
    sneakyModule.setSneakyDirection(getDirection());
}
Also used : SneakyDirection(network.rs485.logisticspipes.module.SneakyDirection)

Example 2 with SneakyDirection

use of network.rs485.logisticspipes.module.SneakyDirection 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

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