Uses of Interface
net.minecraft.recipe.Recipe
Packages that use Recipe
Package
Description
-
Uses of Recipe in net.minecraft.advancement
Fields in net.minecraft.advancement with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final ImmutableList.Builder
<RegistryKey<Recipe<?>>> AdvancementRewards.Builder.recipes
private final List
<RegistryKey<Recipe<?>>> AdvancementRewards.recipes
The field for therecipes
record component.Methods in net.minecraft.advancement that return types with arguments of type RecipeModifier and TypeMethodDescriptionList
<RegistryKey<Recipe<?>>> AdvancementRewards.recipes()
Returns the value of therecipes
record component.Method parameters in net.minecraft.advancement with type arguments of type RecipeModifier and TypeMethodDescriptionAdvancementRewards.Builder.addRecipe
(RegistryKey<Recipe<?>> recipeKey) static AdvancementRewards.Builder
AdvancementRewards.Builder.recipe
(RegistryKey<Recipe<?>> recipeKey) -
Uses of Recipe in net.minecraft.advancement.criterion
Fields in net.minecraft.advancement.criterion with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final RegistryKey
<Recipe<?>> RecipeUnlockedCriterion.Conditions.recipe
The field for therecipe
record component.private final RegistryKey
<Recipe<?>> RecipeCraftedCriterion.Conditions.recipeId
The field for therecipeId
record component.Methods in net.minecraft.advancement.criterion that return types with arguments of type RecipeModifier and TypeMethodDescriptionRegistryKey
<Recipe<?>> RecipeUnlockedCriterion.Conditions.recipe()
Returns the value of therecipe
record component.RegistryKey
<Recipe<?>> RecipeCraftedCriterion.Conditions.recipeId()
Returns the value of therecipeId
record component.Method parameters in net.minecraft.advancement.criterion with type arguments of type RecipeModifier and TypeMethodDescriptionRecipeCraftedCriterion.Conditions.create
(RegistryKey<Recipe<?>> recipeKey) RecipeCraftedCriterion.Conditions.create
(RegistryKey<Recipe<?>> recipeKey, List<ItemPredicate.Builder> ingredients) RecipeUnlockedCriterion.create
(RegistryKey<Recipe<?>> registryKey) RecipeCraftedCriterion.Conditions.createCrafterRecipeCrafted
(RegistryKey<Recipe<?>> recipeKey) (package private) boolean
RecipeCraftedCriterion.Conditions.matches
(RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) void
RecipeCraftedCriterion.trigger
(ServerPlayerEntity player, RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) Constructor parameters in net.minecraft.advancement.criterion with type arguments of type RecipeModifierConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey, List<ItemPredicate> ingredients) Conditions
(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey) -
Uses of Recipe in net.minecraft.block.entity
Fields in net.minecraft.block.entity with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final Reference2IntOpenHashMap
<RegistryKey<Recipe<?>>> AbstractFurnaceBlockEntity.recipesUsed
-
Uses of Recipe in net.minecraft.component
Fields in net.minecraft.component with type parameters of type RecipeModifier and TypeFieldDescriptionstatic final ComponentType
<List<RegistryKey<Recipe<?>>>> DataComponentTypes.RECIPES
-
Uses of Recipe in net.minecraft.data.recipe
Fields in net.minecraft.data.recipe with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final RegistryKey
<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.id
The field for theid
record component.private final Function
<CraftingRecipeCategory, Recipe<?>> ComplexRecipeJsonBuilder.recipeFactory
Methods in net.minecraft.data.recipe that return types with arguments of type RecipeModifier and TypeMethodDescriptionRegistryKey
<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.id()
Returns the value of theid
record component.Methods in net.minecraft.data.recipe with parameters of type RecipeModifier and TypeMethodDescriptionvoid
RecipeExporter.accept
(RegistryKey<Recipe<?>> key, Recipe<?> recipe, @Nullable AdvancementEntry advancement) Method parameters in net.minecraft.data.recipe with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
RecipeExporter.accept
(RegistryKey<Recipe<?>> key, Recipe<?> recipe, @Nullable AdvancementEntry advancement) static ComplexRecipeJsonBuilder
ComplexRecipeJsonBuilder.create
(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) protected void
RecipeGenerator.offerSmithingTrimRecipe
(Item input, RegistryKey<Recipe<?>> registryKey) void
ComplexRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
CookingRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
CraftingRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
ShapedRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
ShapelessRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
SmithingTransformRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
SmithingTrimRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
StonecuttingRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) void
TransmuteRecipeJsonBuilder.offerTo
(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) private void
CookingRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private RawShapedRecipe
ShapedRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private void
ShapelessRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private void
SmithingTransformRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private void
SmithingTrimRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private void
StonecuttingRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) private void
TransmuteRecipeJsonBuilder.validate
(RegistryKey<Recipe<?>> recipeKey) Constructor parameters in net.minecraft.data.recipe with type arguments of type RecipeModifierConstructorDescriptionComplexRecipeJsonBuilder
(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) SmithingTemplate
(Item item, RegistryKey<Recipe<?>> registryKey) -
Uses of Recipe in net.minecraft.entity.player
Method parameters in net.minecraft.entity.player with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
PlayerEntity.unlockRecipes
(List<RegistryKey<Recipe<?>>> recipes) -
Uses of Recipe in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final Object2BooleanMap
<RegistryKey<Recipe<?>>> PlayerPredicate.Builder.recipes
private final Object2BooleanMap
<RegistryKey<Recipe<?>>> PlayerPredicate.recipes
The field for therecipes
record component.Methods in net.minecraft.predicate.entity that return types with arguments of type RecipeModifier and TypeMethodDescriptionPlayerPredicate.recipes()
Returns the value of therecipes
record component.Method parameters in net.minecraft.predicate.entity with type arguments of type RecipeModifier and TypeMethodDescriptionPlayerPredicate.Builder.recipe
(RegistryKey<Recipe<?>> recipeKey, boolean unlocked) Constructor parameters in net.minecraft.predicate.entity with type arguments of type RecipeModifierConstructorDescriptionPlayerPredicate
(NumberRange.IntRange experienceLevel, GameModeList gameModeList, List<PlayerPredicate.StatMatcher<?>> list, Object2BooleanMap<RegistryKey<Recipe<?>>> recipes, Map<Identifier, PlayerPredicate.AdvancementPredicate> advancements, Optional<EntityPredicate> optional, Optional<InputPredicate> optional2) -
Uses of Recipe in net.minecraft.recipe
Classes in net.minecraft.recipe with type parameters of type RecipeModifier and TypeClassDescriptionclass
InputSlotFiller<R extends Recipe<?>>
static interface
InputSlotFiller.Handler<T extends Recipe<?>>
final record
RecipeEntry<T extends Recipe<?>>
interface
RecipeSerializer<T extends Recipe<?>>
The recipe serializer controls the deserialization of recipe content during data pack loading.interface
RecipeType<T extends Recipe<?>>
The recipe type allows matching recipes more efficiently by only checking recipes under a given type.static interface
ServerRecipeManager.MatchGetter<I extends RecipeInput,
T extends Recipe<I>> Subinterfaces of Recipe in net.minecraft.recipeClasses in net.minecraft.recipe that implement RecipeModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
A recipe that has only one input ingredient.class
class
class
class
class
class
class
class
Fields in net.minecraft.recipe declared as RecipeModifier and TypeFieldDescriptionprivate final T
RecipeEntry.value
The field for thevalue
record component.Fields in net.minecraft.recipe with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final Map
<RegistryKey<Recipe<?>>, RecipeEntry<?>> PreparedRecipes.byKey
static final com.mojang.serialization.Codec
<Recipe<?>> Recipe.CODEC
private final RegistryKey
<Recipe<?>> RecipeEntry.id
The field for theid
record component.static final PacketCodec
<RegistryByteBuf, Recipe<?>> Recipe.PACKET_CODEC
private Map
<RegistryKey<Recipe<?>>, List<ServerRecipeManager.ServerRecipe>> ServerRecipeManager.recipesByKey
Methods in net.minecraft.recipe with type parameters of type RecipeModifier and TypeMethodDescriptionstatic <I extends RecipeInput,
T extends Recipe<I>>
ServerRecipeManager.MatchGetter<I, T> ServerRecipeManager.createCachedMatchGetter
(RecipeType<T> type) Creates a cached match getter.static <I extends RecipeInput,
R extends Recipe<I>>
AbstractRecipeScreenHandler.PostFillActionInputSlotFiller.fill
(InputSlotFiller.Handler<R> handler, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn, PlayerInventory inventory, RecipeEntry<R> recipe, boolean craftAll, boolean creative) <I extends RecipeInput,
T extends Recipe<I>>
Stream<RecipeEntry<T>> PreparedRecipes.find
(RecipeType<T> type, I input, World world) private <T extends Recipe<?>>
@Nullable RecipeEntry<T> ServerRecipeManager.get
(RecipeType<T> type, RegistryKey<Recipe<?>> key) Returns a recipe with the givenid
andtype
, or empty if there is no such recipe.<I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeEntry<T>> PreparedRecipes.getAll
(RecipeType<T> type) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world) Returns a recipe of the giventype
that match the giveninventory
andworld
.<I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RecipeEntry<T> recipe) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RegistryKey<Recipe<?>> recipe) static <S extends RecipeSerializer<T>,
T extends Recipe<?>>
Sstatic <T extends Recipe<?>>
RecipeType<T> Methods in net.minecraft.recipe that return types with arguments of type RecipeModifier and TypeMethodDescriptionRecipeSerializer
<? extends Recipe<T>> Recipe.getSerializer()
Returns the serializer associated with this recipe.RecipeType
<? extends Recipe<T>> Recipe.getType()
Returns the type of this recipe.RegistryKey
<Recipe<?>> RecipeEntry.id()
Returns the value of theid
record component.Methods in net.minecraft.recipe with parameters of type RecipeModifier and TypeMethodDescriptionvoid
static <T> void
RecipeGridAligner.alignRecipeToGrid
(int width, int height, Recipe<?> recipe, Iterable<T> slots, RecipeGridAligner.Filler<T> filter) int
RecipeFinder.countCrafts
(Recipe<?> recipe, int max, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) int
RecipeFinder.countCrafts
(Recipe<?> recipe, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) boolean
RecipeFinder.isCraftable
(Recipe<?> recipe, int quantity, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) boolean
RecipeFinder.isCraftable
(Recipe<?> recipe, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) Method parameters in net.minecraft.recipe with type arguments of type RecipeModifier and TypeMethodDescriptionprotected static RecipeEntry
<?> ServerRecipeManager.deserialize
(RegistryKey<Recipe<?>> key, JsonObject json, RegistryWrapper.WrapperLookup registries) Reads a recipe from a JSON object.void
ServerRecipeManager.forEachRecipeDisplay
(RegistryKey<Recipe<?>> key, Consumer<RecipeDisplayEntry> action) PreparedRecipes.get
(RegistryKey<Recipe<?>> key) private <T extends Recipe<?>>
@Nullable RecipeEntry<T> ServerRecipeManager.get
(RecipeType<T> type, RegistryKey<Recipe<?>> key) Returns a recipe with the givenid
andtype
, or empty if there is no such recipe.Optional
<RecipeEntry<?>> ServerRecipeManager.get
(RegistryKey<Recipe<?>> key) Returns a recipe with the givenid
, or empty if there is no such recipe.<I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RegistryKey<Recipe<?>> recipe) Constructor parameters in net.minecraft.recipe with type arguments of type RecipeModifierConstructorDescriptionprivate
PreparedRecipes
(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) RecipeEntry
(RegistryKey<Recipe<?>> registryKey, T t) -
Uses of Recipe in net.minecraft.recipe.display
Classes in net.minecraft.recipe.display with type parameters of type RecipeModifier and TypeClassDescriptionfinal record
CuttingRecipeDisplay<T extends Recipe<?>>
static final record
CuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>
static final record
CuttingRecipeDisplay.Grouping<T extends Recipe<?>>
Methods in net.minecraft.recipe.display with type parameters of type RecipeModifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
PacketCodec<RegistryByteBuf, CuttingRecipeDisplay<T>> CuttingRecipeDisplay.codec()
static <T extends Recipe<?>>
PacketCodec<RegistryByteBuf, CuttingRecipeDisplay.GroupEntry<T>> CuttingRecipeDisplay.GroupEntry.codec()
static <T extends Recipe<?>>
PacketCodec<RegistryByteBuf, CuttingRecipeDisplay.Grouping<T>> CuttingRecipeDisplay.Grouping.codec()
static <T extends Recipe<?>>
CuttingRecipeDisplay.Grouping<T> CuttingRecipeDisplay.Grouping.empty()
-
Uses of Recipe in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type RecipeModifier and TypeFieldDescriptionstatic final RegistryKey
<Registry<Recipe<?>>> RegistryKeys.RECIPE
-
Uses of Recipe in net.minecraft.server.network
Fields in net.minecraft.server.network with type parameters of type RecipeModifier and TypeFieldDescriptionprotected final Set
<RegistryKey<Recipe<?>>> ServerRecipeBook.highlighted
Contains recipes that play an animation when first viewed on the recipe book.protected final Set
<RegistryKey<Recipe<?>>> ServerRecipeBook.unlocked
Method parameters in net.minecraft.server.network with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
ServerRecipeBook.DisplayCollector.displaysForRecipe
(RegistryKey<Recipe<?>> recipeKey, Consumer<RecipeDisplayEntry> adder) private void
ServerRecipeBook.handleList
(NbtList list, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) private void
ServerRecipeBook.handleList
(NbtList list, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) boolean
ServerRecipeBook.isUnlocked
(RegistryKey<Recipe<?>> recipeKey) void
ServerRecipeBook.lock
(RegistryKey<Recipe<?>> recipeKey) private void
ServerRecipeBook.markHighlighted
(RegistryKey<Recipe<?>> recipeKey) void
ServerRecipeBook.readNbt
(NbtCompound nbt, Predicate<RegistryKey<Recipe<?>>> validPredicate) void
ServerRecipeBook.unlock
(RegistryKey<Recipe<?>> recipeKey) void
ServerPlayerEntity.unlockRecipes
(List<RegistryKey<Recipe<?>>> recipes) void
ServerRecipeBook.unmarkHighlighted
(RegistryKey<Recipe<?>> recipeKey)