Class RecipeTrie<R extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
com.simibubi.create.foundation.recipe.trie.RecipeTrie<R>

public class RecipeTrie<R extends net.minecraft.world.item.crafting.Recipe<?>> extends Object
  • 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

      @NotNull public @NotNull List<R> lookup(@NotNull @NotNull Set<AbstractVariant> pool)
      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()