Class SequencedAssemblyRecipe
java.lang.Object
com.simibubi.create.content.contraptions.itemAssembly.SequencedAssemblyRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
public class SequencedAssemblyRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.resources.ResourceLocationprotected net.minecraft.world.item.crafting.Ingredientprotected intprotected List<ProcessingOutput>protected List<SequencedRecipe<?>>protected SequencedAssemblyRecipeSerializerprotected ProcessingOutput -
Constructor Summary
ConstructorsConstructorDescriptionSequencedAssemblyRecipe(net.minecraft.resources.ResourceLocation recipeId, SequencedAssemblyRecipeSerializer serializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAdditionalIngredientsAndMachines(List<net.minecraft.world.item.crafting.Ingredient> list) static voidaddToTooltip(List<net.minecraft.network.chat.Component> toolTip, net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackassemble(net.minecraftforge.items.wrapper.RecipeWrapper p_77572_1_) booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_) net.minecraft.resources.ResourceLocationgetId()net.minecraft.world.item.crafting.IngredientintgetLoops()floatstatic <C extends net.minecraft.world.Container,R extends ProcessingRecipe<C>>
Optional<R>getRecipe(net.minecraft.world.level.Level world, C inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) static <R extends ProcessingRecipe<?>>
Optional<R>getRecipe(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) static <R extends ProcessingRecipe<?>>
Stream<R>getRecipes(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) net.minecraft.world.item.ItemStackList<SequencedRecipe<?>>net.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.RecipeType<?>getType()booleanbooleanmatches(net.minecraftforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level p_77569_2_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete
-
Field Details
-
id
protected net.minecraft.resources.ResourceLocation id -
serializer
-
ingredient
protected net.minecraft.world.item.crafting.Ingredient ingredient -
sequence
-
loops
protected int loops -
transitionalItem
-
resultPool
-
-
Constructor Details
-
SequencedAssemblyRecipe
public SequencedAssemblyRecipe(net.minecraft.resources.ResourceLocation recipeId, SequencedAssemblyRecipeSerializer serializer)
-
-
Method Details
-
getRecipe
public static <C extends net.minecraft.world.Container,R extends ProcessingRecipe<C>> Optional<R> getRecipe(net.minecraft.world.level.Level world, C inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) -
getRecipe
public static <R extends ProcessingRecipe<?>> Optional<R> getRecipe(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) -
getRecipes
public static <R extends ProcessingRecipe<?>> Stream<R> getRecipes(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) -
getLoops
public int getLoops() -
addAdditionalIngredientsAndMachines
public void addAdditionalIngredientsAndMachines(List<net.minecraft.world.item.crafting.Ingredient> list) -
addAdditionalFluidIngredients
-
matches
public boolean matches(net.minecraftforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level p_77569_2_) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraftforge.items.wrapper.RecipeWrapper p_77572_1_) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem()- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
getOutputChance
public float getOutputChance() -
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>
-
addToTooltip
public static void addToTooltip(List<net.minecraft.network.chat.Component> toolTip, net.minecraft.world.item.ItemStack stack) -
getIngredient
public net.minecraft.world.item.crafting.Ingredient getIngredient() -
getSequence
-
getTransitionalItem
public net.minecraft.world.item.ItemStack getTransitionalItem()
-