Class HTHolderRecipeViewerType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipeLookup,hiiragi283.core.api.recipe.HTRecipeLookup.Managed,hiiragi283.core.api.recipe.HTRecipeType,hiiragi283.core.api.recipe.HTRecipeType.Managed,hiiragi283.core.api.recipe.viewer.HTRecipeViewerType,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey
public final class HTHolderRecipeViewerType<INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> implements HTRecipeViewerType<RecipeHolder<RECIPE>>, HTRecipeType.Managed<INPUT, RECIPE>
RecipeHolderに基づいたHTRecipeViewerTypeの実装クラスです。
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final Class<out RecipeHolder<RECIPE>>recipeClassprivate final Either<ResourceLocation, ItemStack>iconprivate final HTBoundsboundsprivate final List<ItemStack>workStationsprivate final StringtranslationKeyprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTHolderRecipeViewerType(Class<out RecipeHolder<RECIPE>> recipeClass, HTRecipeType.Managed<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workStations)
-
Method Summary
Modifier and Type Method Description Class<out RecipeHolder<RECIPE>>getRecipeClass()Either<ResourceLocation, ItemStack>getIcon()HTBoundsgetBounds()List<ItemStack>getWorkStations()StringgetTranslationKey()StringgetNamespace()StringgetPath()StringtoString()final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> HTHolderRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> HTHolderRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>, HOLDER extends RecipeHolder<RECIPE>> HTHolderRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workstations)-
Methods inherited from class hiiragi283.core.api.text.HTHasText
getText -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getId -
Methods inherited from class hiiragi283.core.api.recipe.HTRecipeLookup.Managed
createHolder, getId, getRecipe -
Methods inherited from class hiiragi283.core.api.recipe.HTRecipeLookup
createCache, findFirst, getAllRecipes, getAllRecipes, getAllRecipes, getAllRecipes, getHolder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRecipeClass
Class<out RecipeHolder<RECIPE>> getRecipeClass()
-
getWorkStations
List<ItemStack> getWorkStations()
-
getTranslationKey
String getTranslationKey()
-
getNamespace
String getNamespace()
-
create
final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> HTHolderRecipeViewerType<INPUT, RECIPE> create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)
-
create
final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>> HTHolderRecipeViewerType<INPUT, RECIPE> create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)
-
create
final static <INPUT extends RecipeInput, RECIPE extends Recipe<INPUT>, HOLDER extends RecipeHolder<RECIPE>> HTHolderRecipeViewerType<INPUT, RECIPE> create(HTRecipeType.Managed<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workstations)
-
-
-
-