Search in sources :

Example 1 with ModuleCrafter

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

the class CraftingPipePrevAdvancedSatellitePacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.setPrevSatellite(player, getInteger());
}
Also used : ModuleCrafter(logisticspipes.modules.ModuleCrafter)

Example 2 with ModuleCrafter

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

the class CPipeCleanupStatus method processPacket.

@Override
@ClientSideOnlyMethodContent
public void processPacket(EntityPlayer player) {
    final ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.cleanupModeIsExclude = mode;
    if (Minecraft.getMinecraft().currentScreen instanceof GuiCraftingPipe) {
        ((GuiCraftingPipe) Minecraft.getMinecraft().currentScreen).onCleanupModeChange();
    }
}
Also used : GuiCraftingPipe(logisticspipes.gui.GuiCraftingPipe) ModuleCrafter(logisticspipes.modules.ModuleCrafter) ClientSideOnlyMethodContent(logisticspipes.asm.ClientSideOnlyMethodContent)

Example 3 with ModuleCrafter

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

the class CPipeCleanupToggle method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    final ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.toogleCleaupMode();
    MainProxy.sendPacketToPlayer(PacketHandler.getPacket(CPipeCleanupStatus.class).setMode(module.cleanupModeIsExclude).setPacketPos(this), player);
}
Also used : ModuleCrafter(logisticspipes.modules.ModuleCrafter)

Example 4 with ModuleCrafter

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

the class CPipeSatelliteId method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.setSatelliteId(pipeId, -1);
}
Also used : ModuleCrafter(logisticspipes.modules.ModuleCrafter)

Example 5 with ModuleCrafter

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

the class CraftingAdvancedSatelliteId method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.setSatelliteId(getInteger(), getInteger2());
}
Also used : ModuleCrafter(logisticspipes.modules.ModuleCrafter)

Aggregations

ModuleCrafter (logisticspipes.modules.ModuleCrafter)22 PipeItemsCraftingLogistics (logisticspipes.pipes.PipeItemsCraftingLogistics)2 ItemIdentifierStack (logisticspipes.utils.item.ItemIdentifierStack)2 ClientSideOnlyMethodContent (logisticspipes.asm.ClientSideOnlyMethodContent)1 GuiCraftingPipe (logisticspipes.gui.GuiCraftingPipe)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1 DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)1 FontRenderer (net.minecraft.client.gui.FontRenderer)1 Item (net.minecraft.item.Item)1 ItemStack (net.minecraft.item.ItemStack)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1