Class SequencedAssemblyRecipe
java.lang.Object
com.simibubi.create.content.processing.sequenced.SequencedAssemblyRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
public class SequencedAssemblyRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.item.crafting.Ingredientprotected intfinal List<ProcessingOutput> protected List<SequencedRecipe<?>> protected SequencedAssemblyRecipeSerializerprotected ProcessingOutputFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAdditionalIngredientsAndMachines(List<net.minecraft.world.item.crafting.Ingredient> list) static voidaddToTooltip(net.neoforged.neoforge.event.entity.player.ItemTooltipEvent event) net.minecraft.world.item.ItemStackassemble(net.neoforged.neoforge.items.wrapper.RecipeWrapper input, net.minecraft.core.HolderLookup.Provider registries) booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_) net.minecraft.world.item.crafting.IngredientintgetLoops()floatstatic <I extends net.minecraft.world.item.crafting.RecipeInput,R extends ProcessingRecipe<I, ?>>
Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) static <I extends net.minecraft.world.item.crafting.RecipeInput,R extends ProcessingRecipe<I, ?>>
Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass, Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<R>> recipeFilter) static <R extends ProcessingRecipe<?,?>>
Optional<net.minecraft.world.item.crafting.RecipeHolder<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<net.minecraft.world.item.crafting.RecipeHolder<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.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registries) List<SequencedRecipe<?>> net.minecraft.world.item.crafting.RecipeSerializer<?> net.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.RecipeType<?> getType()booleanbooleanmatches(net.neoforged.neoforge.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, showNotification
-
Field Details
-
serializer
-
ingredient
protected net.minecraft.world.item.crafting.Ingredient ingredient -
sequence
-
loops
protected int loops -
transitionalItem
-
resultPool
-
-
Constructor Details
-
SequencedAssemblyRecipe
-
-
Method Details
-
getRecipe
public static <I extends net.minecraft.world.item.crafting.RecipeInput,R extends ProcessingRecipe<I, Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe?>> (net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass) -
getRecipe
public static <I extends net.minecraft.world.item.crafting.RecipeInput,R extends ProcessingRecipe<I, Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe?>> (net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass, Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<R>> recipeFilter) -
getRecipe
public static <R extends ProcessingRecipe<?,?>> Optional<net.minecraft.world.item.crafting.RecipeHolder<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<net.minecraft.world.item.crafting.RecipeHolder<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.neoforged.neoforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level p_77569_2_) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.neoforged.neoforge.items.wrapper.RecipeWrapper input, net.minecraft.core.HolderLookup.Provider registries) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.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.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
getOutputChance
public float getOutputChance() -
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
addToTooltip
public static void addToTooltip(net.neoforged.neoforge.event.entity.player.ItemTooltipEvent event) -
getIngredient
public net.minecraft.world.item.crafting.Ingredient getIngredient() -
getSequence
-
getTransitionalItem
public net.minecraft.world.item.ItemStack getTransitionalItem()
-