Search in sources :

Example 21 with ModuleCrafter

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

the class CraftingPriority method processPacket.

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

Example 22 with ModuleCrafter

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

the class CraftingPipeSign method getRenderData.

@Override
public IPipeSignData getRenderData(CoreRoutedPipe pipe) {
    PipeItemsCraftingLogistics cpipe = (PipeItemsCraftingLogistics) pipe;
    if (cpipe != null) {
        List<ItemIdentifierStack> craftables = cpipe.getCraftedItems();
        if (craftables != null && craftables.size() > 0) {
            ItemIdentifierStack itemIdentifierStack = craftables.get(0);
            ModuleCrafter logisticsMod = cpipe.getLogisticsModule();
            return new CraftingPipeSignData(itemIdentifierStack, logisticsMod.satelliteId);
        } else {
            return new CraftingPipeSignData(null, -1);
        }
    }
    return null;
}
Also used : PipeItemsCraftingLogistics(logisticspipes.pipes.PipeItemsCraftingLogistics) ItemIdentifierStack(logisticspipes.utils.item.ItemIdentifierStack) 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