Interface HTRecipeFinder.Vanilla

  • All Implemented Interfaces:
    hiiragi283.core.api.recipe.HTRecipeFinder

    
    public interface HTRecipeFinder.Vanilla<INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>>
     implements HTRecipeFinder<INPUT, RECIPE>
                        

    Recipeクラスに基づいたHTRecipeFinderの拡張インターフェースです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Pair<ResourceLocation, RECIPE> getRecipeFor(INPUT input, Level level, Pair<ResourceLocation, RECIPE> lastRecipe) 指定した入力レベルから最初に一致するレシピを返します。
      abstract RecipeHolder<RECIPE> getVanillaRecipeFor(INPUT input, Level level, RecipeHolder<RECIPE> lastRecipe) 指定した入力レベルから最初に一致するレシピを返します。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getRecipeFor

         Pair<ResourceLocation, RECIPE> getRecipeFor(INPUT input, Level level, Pair<ResourceLocation, RECIPE> lastRecipe)

        指定した入力レベルから最初に一致するレシピを返します。

        Returns:

        一致するレシピがない場合はnull

      • getVanillaRecipeFor

         abstract RecipeHolder<RECIPE> getVanillaRecipeFor(INPUT input, Level level, RecipeHolder<RECIPE> lastRecipe)

        指定した入力レベルから最初に一致するレシピを返します。

        Parameters:
        lastRecipe - 最後に一致したレシピのキャッシュ
        Returns:

        一致するレシピがない場合はnull