Search in sources :

Example 1 with ChangingItemStack

use of buildcraft.lib.recipe.ChangingItemStack in project BuildCraft by BuildCraft.

the class FacadeAssemblyRecipes method getRecipeOutputs.

@Override
public ChangingItemStack getRecipeOutputs() {
    NonNullList<ItemStack> list = NonNullList.create();
    for (FacadeBlockStateInfo info : FacadeStateManager.validFacadeStates.values()) {
        if (info.isVisible) {
            list.add(createFacadeStack(info, false));
            list.add(createFacadeStack(info, true));
        }
    }
    ChangingItemStack changing = new ChangingItemStack(list);
    changing.setTimeGap(TIME_GAP);
    return changing;
}
Also used : FacadeBlockStateInfo(buildcraft.transport.plug.FacadeBlockStateInfo) ChangingItemStack(buildcraft.lib.recipe.ChangingItemStack) ItemStack(net.minecraft.item.ItemStack) ChangingItemStack(buildcraft.lib.recipe.ChangingItemStack)

Example 2 with ChangingItemStack

use of buildcraft.lib.recipe.ChangingItemStack in project BuildCraft by BuildCraft.

the class FacadeAssemblyRecipes method getRecipeInputs.

@Override
public ChangingItemStack[] getRecipeInputs() {
    ChangingItemStack[] inputs = new ChangingItemStack[2];
    inputs[0] = new ChangingItemStack(new ItemStack(BCTransportItems.pipeStructure, 3));
    NonNullList<ItemStack> list = NonNullList.create();
    for (FacadeBlockStateInfo info : FacadeStateManager.validFacadeStates.values()) {
        if (info.isVisible) {
            list.add(info.requiredStack);
            list.add(info.requiredStack);
        }
    }
    inputs[1] = new ChangingItemStack(list);
    inputs[1].setTimeGap(TIME_GAP);
    return inputs;
}
Also used : FacadeBlockStateInfo(buildcraft.transport.plug.FacadeBlockStateInfo) ChangingItemStack(buildcraft.lib.recipe.ChangingItemStack) ItemStack(net.minecraft.item.ItemStack) ChangingItemStack(buildcraft.lib.recipe.ChangingItemStack)

Aggregations

ChangingItemStack (buildcraft.lib.recipe.ChangingItemStack)2 FacadeBlockStateInfo (buildcraft.transport.plug.FacadeBlockStateInfo)2 ItemStack (net.minecraft.item.ItemStack)2