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