Class HTLookupRecipeViewerType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.viewer.HTRecipeViewerType,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.text.HTHasText
public final class HTLookupRecipeViewerType<BASE extends Object, RECIPE extends BASE> implements HTRecipeViewerType<HTRecipeHolder<RECIPE>>, HTIdLike, HTHasText
HTRecipeHolderに基づいたHTRecipeViewerTypeの実装クラスです。
- Since:
0.15.1
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 Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTLookupRecipeViewerType(Class<out HTRecipeHolder<RECIPE>> recipeClass, HTRecipeType<?, out BASE> 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()StringgetNamespace()StringgetPath()StringtoString()final static <BASE extends Any, RECIPE extends BASE> HTLookupRecipeViewerType<BASE, RECIPE>create(HTRecipeType<?, out BASE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)final static <BASE extends Any, RECIPE extends BASE> HTLookupRecipeViewerType<BASE, RECIPE>create(HTRecipeType<?, out BASE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)final static <BASE extends Any, RECIPE extends BASE, HOLDER extends HTRecipeHolder<RECIPE>> HTLookupRecipeViewerType<BASE, RECIPE>create(HTRecipeType<?, out BASE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workstations)-
-
Constructor Detail
-
HTLookupRecipeViewerType
HTLookupRecipeViewerType(Class<out HTRecipeHolder<RECIPE>> recipeClass, HTRecipeType<?, out BASE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workStations)
-
-
Method Detail
-
getRecipeClass
Class<out HTRecipeHolder<RECIPE>> getRecipeClass()
-
getWorkStations
List<ItemStack> getWorkStations()
-
getNamespace
String getNamespace()
-
create
final static <BASE extends Any, RECIPE extends BASE> HTLookupRecipeViewerType<BASE, RECIPE> create(HTRecipeType<?, out BASE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)
-
create
final static <BASE extends Any, RECIPE extends BASE> HTLookupRecipeViewerType<BASE, RECIPE> create(HTRecipeType<?, out BASE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)
-
create
final static <BASE extends Any, RECIPE extends BASE, HOLDER extends HTRecipeHolder<RECIPE>> HTLookupRecipeViewerType<BASE, RECIPE> create(HTRecipeType<?, out BASE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workstations)
-
-
-
-