Package hiiragi283.core.api.recipe
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
Hiiragi Tsubasa
-
-
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)指定した入力とレベルから最初に一致するレシピを返します。 -
-
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
-
-
-
-