Search in sources :

Example 6 with ItemIdentifierInventory

use of logisticspipes.utils.item.ItemIdentifierInventory in project LogisticsPipes by RS485.

the class StringBasedItemSinkModuleGuiInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof IStringBasedModule)) {
        return null;
    }
    dummy.setInventory(new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) IStringBasedModule(logisticspipes.interfaces.IStringBasedModule) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Example 7 with ItemIdentifierInventory

use of logisticspipes.utils.item.ItemIdentifierInventory in project LogisticsPipes by RS485.

the class ThaumicAspectSinkModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleThaumicAspectSink)) {
        return null;
    }
    dummy.setInventory(new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleThaumicAspectSink(logisticspipes.modules.ModuleThaumicAspectSink) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Example 8 with ItemIdentifierInventory

use of logisticspipes.utils.item.ItemIdentifierInventory in project LogisticsPipes by RS485.

the class StringBasedItemSinkModuleGuiSlot method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    IStringBasedModule module = this.getLogisticsModule(player.getEntityWorld(), IStringBasedModule.class);
    if (module == null) {
        return null;
    }
    DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyContainer(logisticspipes.utils.gui.DummyContainer) IStringBasedModule(logisticspipes.interfaces.IStringBasedModule) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Aggregations

ItemIdentifierInventory (logisticspipes.utils.item.ItemIdentifierInventory)8 DummyContainer (logisticspipes.utils.gui.DummyContainer)3 DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)3 IStringBasedModule (logisticspipes.interfaces.IStringBasedModule)2 ModuleOreDictItemSink (logisticspipes.modules.ModuleOreDictItemSink)2 ModuleThaumicAspectSink (logisticspipes.modules.ModuleThaumicAspectSink)2 IFlexibleRecipe (buildcraft.api.recipes.IFlexibleRecipe)1 FlexibleRecipe (buildcraft.core.recipes.FlexibleRecipe)1 TileAssemblyTable (buildcraft.silicon.TileAssemblyTable)1 ItemIdentifierStack (logisticspipes.utils.item.ItemIdentifierStack)1 Block (net.minecraft.block.Block)1 Item (net.minecraft.item.Item)1 ItemStack (net.minecraft.item.ItemStack)1 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)1 NBTTagList (net.minecraft.nbt.NBTTagList)1 NBTTagString (net.minecraft.nbt.NBTTagString)1 FluidStack (net.minecraftforge.fluids.FluidStack)1