Interface Recipe.BookInfo<CategoryType>
- All Known Implementing Classes:
AbstractCookingRecipe.CookingBookInfo, CraftingRecipe.CraftingBookInfo
- Enclosing interface:
Recipe<T extends RecipeInput>
public static interface Recipe.BookInfo<CategoryType>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptioncategory()group()static <CategoryType, SelfType extends Recipe.BookInfo<CategoryType>>
com.mojang.serialization.MapCodec<SelfType> mapCodec(com.mojang.serialization.Codec<CategoryType> categoryCodec, CategoryType defaultCategory, Recipe.BookInfo.Constructor<CategoryType, SelfType> constructor) static <CategoryType, SelfType extends Recipe.BookInfo<CategoryType>>
StreamCodec<RegistryFriendlyByteBuf, SelfType> streamCodec(StreamCodec<? super RegistryFriendlyByteBuf, CategoryType> categoryCodec, Recipe.BookInfo.Constructor<CategoryType, SelfType> constructor)
-
Method Details
-
category
CategoryType category() -
group
String group() -
mapCodec
static <CategoryType, SelfType extends Recipe.BookInfo<CategoryType>> com.mojang.serialization.MapCodec<SelfType> mapCodec(com.mojang.serialization.Codec<CategoryType> categoryCodec, CategoryType defaultCategory, Recipe.BookInfo.Constructor<CategoryType, SelfType> constructor) -
streamCodec
static <CategoryType, SelfType extends Recipe.BookInfo<CategoryType>> StreamCodec<RegistryFriendlyByteBuf, SelfType> streamCodec(StreamCodec<? super RegistryFriendlyByteBuf, CategoryType> categoryCodec, Recipe.BookInfo.Constructor<CategoryType, SelfType> constructor)
-