public class SequencedAssemblyRecipe
extends java.lang.Object
implements net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.ResourceLocation |
id |
protected net.minecraft.item.crafting.Ingredient |
ingredient |
protected int |
loops |
protected java.util.List<ProcessingOutput> |
resultPool |
protected java.util.List<SequencedRecipe<?>> |
sequence |
protected SequencedAssemblyRecipeSerializer |
serializer |
protected ProcessingOutput |
transitionalItem |
| Constructor and Description |
|---|
SequencedAssemblyRecipe(net.minecraft.util.ResourceLocation recipeId,
SequencedAssemblyRecipeSerializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalFluidIngredients(java.util.List<FluidIngredient> list) |
void |
addAdditionalIngredientsAndMachines(java.util.List<net.minecraft.item.crafting.Ingredient> list) |
static void |
addToTooltip(java.util.List<net.minecraft.util.text.ITextComponent> toolTip,
net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
assemble(net.minecraftforge.items.wrapper.RecipeWrapper p_77572_1_) |
boolean |
canCraftInDimensions(int p_194133_1_,
int p_194133_2_) |
net.minecraft.util.ResourceLocation |
getId() |
net.minecraft.item.crafting.Ingredient |
getIngredient() |
int |
getLoops() |
float |
getOutputChance() |
static <C extends net.minecraft.inventory.IInventory,R extends ProcessingRecipe<C>> |
getRecipe(net.minecraft.world.World world,
C inv,
net.minecraft.item.crafting.IRecipeType<R> type,
java.lang.Class<R> recipeClass) |
static <R extends ProcessingRecipe<?>> |
getRecipe(net.minecraft.world.World world,
net.minecraft.item.ItemStack item,
net.minecraft.item.crafting.IRecipeType<R> type,
java.lang.Class<R> recipeClass) |
static <R extends ProcessingRecipe<?>> |
getRecipes(net.minecraft.world.World world,
net.minecraft.item.ItemStack item,
net.minecraft.item.crafting.IRecipeType<R> type,
java.lang.Class<R> recipeClass) |
net.minecraft.item.ItemStack |
getResultItem() |
java.util.List<SequencedRecipe<?>> |
getSequence() |
net.minecraft.item.crafting.IRecipeSerializer<?> |
getSerializer() |
net.minecraft.item.ItemStack |
getTransitionalItem() |
net.minecraft.item.crafting.IRecipeType<?> |
getType() |
boolean |
isSpecial() |
boolean |
matches(net.minecraftforge.items.wrapper.RecipeWrapper inv,
net.minecraft.world.World p_77569_2_) |
protected net.minecraft.util.ResourceLocation id
protected SequencedAssemblyRecipeSerializer serializer
protected net.minecraft.item.crafting.Ingredient ingredient
protected java.util.List<SequencedRecipe<?>> sequence
protected int loops
protected ProcessingOutput transitionalItem
protected java.util.List<ProcessingOutput> resultPool
public SequencedAssemblyRecipe(net.minecraft.util.ResourceLocation recipeId,
SequencedAssemblyRecipeSerializer serializer)
public static <C extends net.minecraft.inventory.IInventory,R extends ProcessingRecipe<C>> java.util.Optional<R> getRecipe(net.minecraft.world.World world, C inv, net.minecraft.item.crafting.IRecipeType<R> type, java.lang.Class<R> recipeClass)
public static <R extends ProcessingRecipe<?>> java.util.Optional<R> getRecipe(net.minecraft.world.World world, net.minecraft.item.ItemStack item, net.minecraft.item.crafting.IRecipeType<R> type, java.lang.Class<R> recipeClass)
public static <R extends ProcessingRecipe<?>> java.util.stream.Stream<R> getRecipes(net.minecraft.world.World world, net.minecraft.item.ItemStack item, net.minecraft.item.crafting.IRecipeType<R> type, java.lang.Class<R> recipeClass)
public int getLoops()
public void addAdditionalIngredientsAndMachines(java.util.List<net.minecraft.item.crafting.Ingredient> list)
public void addAdditionalFluidIngredients(java.util.List<FluidIngredient> list)
public boolean matches(net.minecraftforge.items.wrapper.RecipeWrapper inv,
net.minecraft.world.World p_77569_2_)
matches in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public net.minecraft.item.ItemStack assemble(net.minecraftforge.items.wrapper.RecipeWrapper p_77572_1_)
assemble in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public boolean canCraftInDimensions(int p_194133_1_,
int p_194133_2_)
canCraftInDimensions in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public net.minecraft.item.ItemStack getResultItem()
getResultItem in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public float getOutputChance()
public net.minecraft.util.ResourceLocation getId()
getId in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public net.minecraft.item.crafting.IRecipeSerializer<?> getSerializer()
getSerializer in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public boolean isSpecial()
isSpecial in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public net.minecraft.item.crafting.IRecipeType<?> getType()
getType in interface net.minecraft.item.crafting.IRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>public static void addToTooltip(java.util.List<net.minecraft.util.text.ITextComponent> toolTip,
net.minecraft.item.ItemStack stack)
public net.minecraft.item.crafting.Ingredient getIngredient()
public java.util.List<SequencedRecipe<?>> getSequence()
public net.minecraft.item.ItemStack getTransitionalItem()