Interface RecipeTypeMappingSupplier.RecipeTypeMappings

Enclosing interface:
RecipeTypeMappingSupplier

public static interface RecipeTypeMappingSupplier.RecipeTypeMappings
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T extends net.minecraft.world.item.crafting.Recipe<C>, C extends net.minecraft.world.item.crafting.RecipeInput>
    void
    add(net.minecraft.world.item.crafting.RecipeType<T> recipeType, Function<net.minecraft.world.item.crafting.RecipeHolder<T>,@Nullable LytBlock> factory)
    Adds a factory that can produce a display element (or none) for recipes of the given type.
    <T extends net.minecraft.world.item.crafting.Recipe<C>, C extends net.minecraft.world.item.crafting.RecipeInput>
    void
    addStreamFactory(net.minecraft.world.item.crafting.RecipeType<T> recipeType, Function<net.minecraft.world.item.crafting.RecipeHolder<T>,Stream<? extends LytBlock>> factory)
    Adds a factory that can produce 0 or more display elements for recipes of the given type.
  • Method Details

    • add

      default <T extends net.minecraft.world.item.crafting.Recipe<C>, C extends net.minecraft.world.item.crafting.RecipeInput> void add(net.minecraft.world.item.crafting.RecipeType<T> recipeType, Function<net.minecraft.world.item.crafting.RecipeHolder<T>,@Nullable LytBlock> factory)
      Adds a factory that can produce a display element (or none) for recipes of the given type.
    • addStreamFactory

      <T extends net.minecraft.world.item.crafting.Recipe<C>, C extends net.minecraft.world.item.crafting.RecipeInput> void addStreamFactory(net.minecraft.world.item.crafting.RecipeType<T> recipeType, Function<net.minecraft.world.item.crafting.RecipeHolder<T>,Stream<? extends LytBlock>> factory)
      Adds a factory that can produce 0 or more display elements for recipes of the given type.