Class RecipeTrie<R extends net.minecraft.world.item.crafting.Recipe<?>>
java.lang.Object
com.simibubi.create.foundation.recipe.trie.RecipeTrie<R>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecipeTrie.Builder<R extends net.minecraft.world.item.crafting.Recipe<?>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends net.minecraft.world.item.crafting.Recipe<?>>
RecipeTrie.Builder<R> builder()static @NotNull Set<AbstractVariant> getVariants(@Nullable net.neoforged.neoforge.items.IItemHandler itemStorage, @Nullable net.neoforged.neoforge.fluids.capability.IFluidHandler fluidStorage) lookup(@NotNull Set<AbstractVariant> pool) Look up all recipes that can be made with (a subset of) the given pool of resources.
-
Method Details
-
getVariants
@NotNull public static @NotNull Set<AbstractVariant> getVariants(@Nullable @Nullable net.neoforged.neoforge.items.IItemHandler itemStorage, @Nullable @Nullable net.neoforged.neoforge.fluids.capability.IFluidHandler fluidStorage) -
lookup
Look up all recipes that can be made with (a subset of) the given pool of resources.- Parameters:
pool- the set of allowable variants. It will be modified to only contain known variants.- Returns:
- all recipes that can be made with the given pool of resources.
-
builder
public static <R extends net.minecraft.world.item.crafting.Recipe<?>> RecipeTrie.Builder<R> builder()
-