Package hiiragi283.core.common.registry
Class HTDeferredRecipeType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipeFinder,hiiragi283.core.api.recipe.HTRecipeFinder.Vanilla,hiiragi283.core.api.recipe.HTRecipeLookup,hiiragi283.core.api.recipe.HTRecipeType,hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey,java.util.function.Supplier
public final class HTDeferredRecipeType<INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> implements HTHolderLike<RecipeType<?>, RecipeType<RECIPE>>, HTRecipeFinder.Vanilla<INPUT, RECIPE>, HTRecipeType<INPUT, RECIPE>
-
-
Constructor Summary
Constructors Constructor Description HTDeferredRecipeType(ResourceKey<RecipeType<?>> key)HTDeferredRecipeType(ResourceLocation id)
-
Method Summary
Modifier and Type Method Description StringgetNamespace()StringgetPath()StringgetTranslationKey()ResourceKey<RecipeType<?>>getResourceKey()保持しているResourceKeyを返します。 RecipeType<RECIPE>get()RecipeHolder<RECIPE>getVanillaRecipeFor(INPUT input, Level level, RecipeHolder<RECIPE> lastRecipe)指定した入力とレベルから最初に一致するレシピを返します。 HTRecipeCache<INPUT, RECIPE>createCache()HTRecipeCacheの新しいインスタンスを作成します。 List<RecipeHolder<RECIPE>>getAllRecipes(HTRecipeLookup.Context context)指定したcontextからレシピの一覧を取得します。 -
Methods inherited from class hiiragi283.core.api.recipe.HTRecipeLookup
findFirst, getAllRecipes, getAllRecipes, getAllRecipes -
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike
getId, isOf, isOf -
Methods inherited from class hiiragi283.core.api.recipe.HTRecipeFinder.Vanilla
getRecipeFor -
Methods inherited from class hiiragi283.core.api.recipe.HTRecipeType
getText -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getNamespace
String getNamespace()
-
getTranslationKey
String getTranslationKey()
-
getResourceKey
ResourceKey<RecipeType<?>> getResourceKey()
保持しているResourceKeyを返します。
-
getVanillaRecipeFor
RecipeHolder<RECIPE> getVanillaRecipeFor(INPUT input, Level level, RecipeHolder<RECIPE> lastRecipe)
- Returns:
一致するレシピがない場合は
null
-
createCache
HTRecipeCache<INPUT, RECIPE> createCache()
HTRecipeCacheの新しいインスタンスを作成します。
-
getAllRecipes
List<RecipeHolder<RECIPE>> getAllRecipes(HTRecipeLookup.Context context)
指定したcontextからレシピの一覧を取得します。
- Returns:
RecipeHolderのList
-
-
-
-