Search in sources :

Example 6 with FacadeBlockStateInfo

use of buildcraft.transport.plug.FacadeBlockStateInfo 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

FacadeBlockStateInfo (buildcraft.transport.plug.FacadeBlockStateInfo)6 ChangingItemStack (buildcraft.lib.recipe.ChangingItemStack)3 FacadeInstance (buildcraft.transport.plug.FacadeInstance)3 ItemStack (net.minecraft.item.ItemStack)3 FacadePhasedState (buildcraft.transport.plug.FacadePhasedState)2 ItemStackKey (buildcraft.lib.misc.ItemStackKey)1 ArrayList (java.util.ArrayList)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1