Class RecipeMatrix<T extends net.minecraft.world.item.crafting.Recipe<I>, I extends net.minecraft.world.item.crafting.RecipeInput>

java.lang.Object
com.refinedmods.refinedstorage.common.support.RecipeMatrix<T,I>

public class RecipeMatrix<T extends net.minecraft.world.item.crafting.Recipe<I>, I extends net.minecraft.world.item.crafting.RecipeInput> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipeMatrix(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier, int width, int height, Function<RecipeMatrixContainer, I> inputProvider, net.minecraft.world.item.crafting.RecipeType<T> recipeType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clear(net.minecraft.world.level.Level level)
     
    static RecipeMatrix<net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.CraftingInput>
    crafting(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier)
     
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(@Nullable net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input)
     
    net.minecraft.world.inventory.ResultContainer
     
    boolean
     
    void
    load(net.minecraft.world.item.component.ItemContainerContents contents)
     
    static RecipeMatrix<net.minecraft.world.item.crafting.SmithingRecipe, net.minecraft.world.item.crafting.SmithingRecipeInput>
    smithingTable(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier)
     
    void
    updateResult(net.minecraft.world.level.Level level)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecipeMatrix

      public RecipeMatrix(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier, int width, int height, Function<RecipeMatrixContainer, I> inputProvider, net.minecraft.world.item.crafting.RecipeType<T> recipeType)
  • Method Details

    • crafting

      public static RecipeMatrix<net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.CraftingInput> crafting(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier)
    • smithingTable

      public static RecipeMatrix<net.minecraft.world.item.crafting.SmithingRecipe, net.minecraft.world.item.crafting.SmithingRecipeInput> smithingTable(Runnable listener, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier)
    • clear

      public void clear(net.minecraft.world.level.Level level)
    • updateResult

      public void updateResult(net.minecraft.world.level.Level level)
    • getMatrix

      public RecipeMatrixContainer getMatrix()
    • getResult

      public net.minecraft.world.inventory.ResultContainer getResult()
    • hasResult

      public boolean hasResult()
    • getRemainingItems

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(@Nullable net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input)
    • load

      public void load(net.minecraft.world.item.component.ItemContainerContents contents)