Interface Recipe<T extends RecipeInput>
- All Known Subinterfaces:
CraftingRecipe,SmithingRecipe
- All Known Implementing Classes:
AbstractCookingRecipe,ArmorDyeRecipe,BannerDuplicateRecipe,BlastingRecipe,BookCloningRecipe,CampfireCookingRecipe,CustomRecipe,DecoratedPotRecipe,FireworkRocketRecipe,FireworkStarFadeRecipe,FireworkStarRecipe,MapCloningRecipe,MapExtendingRecipe,RepairItemRecipe,ShapedRecipe,ShapelessRecipe,ShieldDecorationRecipe,ShulkerBoxColoring,SingleItemRecipe,SmeltingRecipe,SmithingTransformRecipe,SmithingTrimRecipe,SmokingRecipe,StonecutterRecipe,SuspiciousStewRecipe,TippedArrowRecipe
public interface Recipe<T extends RecipeInput>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Recipe<?>> static final com.mojang.serialization.Codec<Optional<WithConditions<Recipe<?>>>> static final StreamCodec<RegistryFriendlyByteBuf, Recipe<?>> -
Method Summary
Modifier and TypeMethodDescriptionassemble(T input, HolderLookup.Provider registries) booleancanCraftInDimensions(int width, int height) Used to determine if this recipe can fit in a grid of the given width/heightdefault StringgetGroup()default NonNullList<Ingredient> default NonNullList<ItemStack> getRemainingItems(T input) getResultItem(HolderLookup.Provider registries) default ItemStackRecipeType<?> getType()default booleandefault booleanbooleandefault boolean
-
Field Details
-
CODEC
-
CONDITIONAL_CODEC
-
STREAM_CODEC
-
-
Method Details
-
matches
-
assemble
-
canCraftInDimensions
boolean canCraftInDimensions(int width, int height) Used to determine if this recipe can fit in a grid of the given width/height -
getResultItem
-
getRemainingItems
-
getIngredients
-
isSpecial
default boolean isSpecial() -
showNotification
default boolean showNotification() -
getGroup
-
getToastSymbol
-
getSerializer
RecipeSerializer<?> getSerializer() -
getType
RecipeType<?> getType() -
isIncomplete
default boolean isIncomplete()
-