Interface HTRecipeFinder

  • All Implemented Interfaces:

    
    public interface HTRecipeFinder<INPUT extends RecipeInput, RECIPE extends Object>
    
                        

    指定したインプットに一致する最初のレシピを取得する処理を表すインターフェース

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface HTRecipeFinder.Vanilla

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

    • 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
      abstract Pair<ResourceLocation, RECIPE> getRecipeFor(INPUT input, Level level, Pair<ResourceLocation, 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

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

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

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

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