Search in sources :

Example 1 with LogisticsSneakyDirectionModule

use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.

the class ExtractorModuleSlot method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    LogisticsSneakyDirectionModule module = this.getLogisticsModule(player.getEntityWorld(), LogisticsSneakyDirectionModule.class);
    if (module == null) {
        return null;
    }
    module.setSneakyDirection(sneakyOrientation);
    return new GuiExtractor(player.inventory, module);
}
Also used : GuiExtractor(logisticspipes.gui.modules.GuiExtractor) LogisticsSneakyDirectionModule(logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule)

Example 2 with LogisticsSneakyDirectionModule

use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.

the class ExtractorModuleDirectionPacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    final LogisticsSneakyDirectionModule module = this.getLogisticsModule(player, LogisticsSneakyDirectionModule.class);
    if (module == null) {
        return;
    }
    module.setSneakyDirection(getDirection());
    MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ExtractorModuleMode.class).setDirection(module.getSneakyDirection()).setPacketPos(this), player);
}
Also used : ExtractorModuleMode(logisticspipes.network.packets.modules.ExtractorModuleMode) LogisticsSneakyDirectionModule(logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule)

Example 3 with LogisticsSneakyDirectionModule

use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.

the class ExtractorModuleMode method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsSneakyDirectionModule recieiver = this.getLogisticsModule(player, LogisticsSneakyDirectionModule.class);
    if (recieiver == null) {
        return;
    }
    recieiver.setSneakyDirection(getDirection());
}
Also used : LogisticsSneakyDirectionModule(logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule)

Aggregations

LogisticsSneakyDirectionModule (logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule)3 GuiExtractor (logisticspipes.gui.modules.GuiExtractor)1 ExtractorModuleMode (logisticspipes.network.packets.modules.ExtractorModuleMode)1