Search in sources :

Example 6 with ModuleCrafter

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

the class CraftingModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleCrafter)) {
        return null;
    }
    MainProxy.sendPacketToPlayer(((ModuleCrafter) dummy.getModule()).getCPipePacket(), player);
    dummy.setInventory(((ModuleCrafter) dummy.getModule()).getDummyInventory());
    dummy.addNormalSlotsForPlayerInventory(18, 97);
    //Input slots
    for (int l = 0; l < 9; l++) {
        dummy.addFuzzyDummySlot(l, 18 + l * 18, 18, ((ModuleCrafter) dummy.getModule()).fuzzyCraftingFlagArray[l]);
    }
    //Output slot
    dummy.addFuzzyDummySlot(9, 90, 64, ((ModuleCrafter) dummy.getModule()).outputFuzzyFlags);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleCrafter(logisticspipes.modules.ModuleCrafter)

Example 7 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 8 with ModuleCrafter

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

the class CPipeSatelliteImport method processPacket.

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

Example 9 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)

Example 10 with ModuleCrafter

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

the class FluidCraftingAdvancedSatelliteId method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
    if (module == null) {
        return;
    }
    module.setFluidSatelliteId(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 SideOnly (cpw.mods.fml.relauncher.SideOnly)1 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