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<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<net.minecraft.world.level.Level> levelSupplier)
     
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(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
    readFromTag(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    static RecipeMatrix<net.minecraft.world.item.crafting.SmithingRecipe,net.minecraft.world.item.crafting.SmithingRecipeInput>
    smithingTable(Runnable listener, Supplier<net.minecraft.world.level.Level> levelSupplier)
     
    void
    updateResult(net.minecraft.world.level.Level level)
     
    net.minecraft.nbt.CompoundTag
    writeToTag(net.minecraft.core.HolderLookup.Provider provider)
     

    Methods inherited from class java.lang.Object

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

    • RecipeMatrix

      public RecipeMatrix(Runnable listener, Supplier<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<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<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)
    • writeToTag

      public net.minecraft.nbt.CompoundTag writeToTag(net.minecraft.core.HolderLookup.Provider provider)
    • readFromTag

      public void readFromTag(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)