Package hiiragi283.core.api.recipe
Interface HTRecipeLookup
-
- All Implemented Interfaces:
-
hiiragi283.core.api.resource.HTIdLike
public interface HTRecipeLookup<INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> implements HTIdLike
レシピの一覧を提供するインターフェースです。
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTRecipeLookup.Context
-
Method Summary
Modifier and Type Method Description abstract HTRecipeCache<INPUT, RECIPE>createCache()HTRecipeCacheの新しいインスタンスを作成します。 List<RecipeHolder<RECIPE>>getAllRecipes()現在のサーバーまたはクライアントからレシピの一覧を取得します。 List<RecipeHolder<RECIPE>>getAllRecipes(Level level)指定したlevelからレシピの一覧を取得します。 List<RecipeHolder<RECIPE>>getAllRecipes(MinecraftServer server)指定したserverからレシピの一覧を取得します。 abstract List<RecipeHolder<RECIPE>>getAllRecipes(HTRecipeLookup.Context context)指定したcontextからレシピの一覧を取得します。 RecipeHolder<RECIPE>findFirst(Level level, Function1<RECIPE, Boolean> predicate)指定したlevelから,predicateに一致するレシピを取得します。 StringgetNamespace()StringgetPath()-
-
Method Detail
-
createCache
abstract HTRecipeCache<INPUT, RECIPE> createCache()
HTRecipeCacheの新しいインスタンスを作成します。
-
getAllRecipes
List<RecipeHolder<RECIPE>> getAllRecipes()
現在のサーバーまたはクライアントからレシピの一覧を取得します。
- Returns:
RecipeHolderのList
-
getAllRecipes
List<RecipeHolder<RECIPE>> getAllRecipes(Level level)
指定したlevelからレシピの一覧を取得します。
- Returns:
RecipeHolderのList
-
getAllRecipes
List<RecipeHolder<RECIPE>> getAllRecipes(MinecraftServer server)
指定したserverからレシピの一覧を取得します。
- Returns:
RecipeHolderのList
-
getAllRecipes
abstract List<RecipeHolder<RECIPE>> getAllRecipes(HTRecipeLookup.Context context)
指定したcontextからレシピの一覧を取得します。
- Returns:
RecipeHolderのList
-
findFirst
RecipeHolder<RECIPE> findFirst(Level level, Function1<RECIPE, Boolean> predicate)
- Returns:
predicateに一致するレシピがない場合は
null
-
getNamespace
String getNamespace()
-
-
-
-