Class HTFakeRecipeViewerType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipeLookup,hiiragi283.core.api.recipe.HTRecipeLookup.Fake,hiiragi283.core.api.recipe.HTRecipeType,hiiragi283.core.api.recipe.HTRecipeType.Fake,hiiragi283.core.api.recipe.viewer.HTRecipeViewerType,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey
public final class HTFakeRecipeViewerType<INPUT extends RecipeInput, RECIPE extends Object> implements HTRecipeViewerType<IdToValue<RECIPE>>, HTRecipeType.Fake<INPUT, RECIPE>
IdToValueに基づいたHTRecipeViewerTypeの実装クラスです。
- Since:
0.12.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final Class<out Pair<ResourceLocation, RECIPE>>recipeClassprivate final Either<ResourceLocation, ItemStack>iconprivate final HTBoundsboundsprivate final List<ItemStack>workStationsprivate final StringtranslationKeyprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTFakeRecipeViewerType(Class<out Pair<ResourceLocation, RECIPE>> recipeClass, HTRecipeType.Fake<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, List<ItemStack> workStations)
-
Method Summary
Modifier and Type Method Description Class<out Pair<ResourceLocation, RECIPE>>getRecipeClass()Either<ResourceLocation, ItemStack>getIcon()HTBoundsgetBounds()List<ItemStack>getWorkStations()StringgetTranslationKey()StringgetNamespace()StringgetPath()StringtoString()final static <INPUT extends RecipeInput, RECIPE extends Any> HTFakeRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Fake<INPUT, RECIPE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)final static <INPUT extends RecipeInput, RECIPE extends Any> HTFakeRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Fake<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)final static <INPUT extends RecipeInput, RECIPE extends Any, HOLDER extends Pair<ResourceLocation, RECIPE>> HTFakeRecipeViewerType<INPUT, RECIPE>create(HTRecipeType.Fake<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.Fake
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 Pair<ResourceLocation, RECIPE>> getRecipeClass()
-
getWorkStations
List<ItemStack> getWorkStations()
-
getTranslationKey
String getTranslationKey()
-
getNamespace
String getNamespace()
-
create
final static <INPUT extends RecipeInput, RECIPE extends Any> HTFakeRecipeViewerType<INPUT, RECIPE> create(HTRecipeType.Fake<INPUT, RECIPE> deferredType, ItemStack icon, HTBounds bounds, ItemStack workStations)
-
create
final static <INPUT extends RecipeInput, RECIPE extends Any> HTFakeRecipeViewerType<INPUT, RECIPE> create(HTRecipeType.Fake<INPUT, RECIPE> deferredType, Either<ResourceLocation, ItemStack> icon, HTBounds bounds, ItemStack workStations)
-
-
-
-