Uses of Interface
net.minecraft.recipe.Recipe
Package
Description
-
Uses of Recipe in net.minecraft.advancement
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder
<RegistryKey<Recipe<?>>> AdvancementRewards.Builder.recipes
private final List
<RegistryKey<Recipe<?>>> AdvancementRewards.recipes
The field for therecipes
record component.Modifier and TypeMethodDescriptionList
<RegistryKey<Recipe<?>>> AdvancementRewards.recipes()
Returns the value of therecipes
record component.Modifier and TypeMethodDescriptionAdvancementRewards.Builder.addRecipe
(RegistryKey<Recipe<?>> recipeKey) static AdvancementRewards.Builder
AdvancementRewards.Builder.recipe
(RegistryKey<Recipe<?>> recipeKey) -
Uses of Recipe in net.minecraft.advancement.criterion
Modifier 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.Modifier 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.Modifier 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) ModifierConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey, List<ItemPredicate> ingredients) Conditions
(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey) -
Uses of Recipe in net.minecraft.block.entity
Modifier and TypeFieldDescriptionprivate final Reference2IntOpenHashMap
<RegistryKey<Recipe<?>>> AbstractFurnaceBlockEntity.recipesUsed
-
Uses of Recipe in net.minecraft.component
Modifier and TypeFieldDescriptionstatic final ComponentType
<List<RegistryKey<Recipe<?>>>> DataComponentTypes.RECIPES
-
Uses of Recipe in net.minecraft.data.server.recipe
Modifier and TypeFieldDescriptionprivate final RegistryKey
<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.id
The field for theid
record component.private final Function
<CraftingRecipeCategory, Recipe<?>> ComplexRecipeJsonBuilder.recipeFactory
Modifier and TypeMethodDescriptionRegistryKey
<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.id()
Returns the value of theid
record component.Modifier and TypeMethodDescriptionvoid
RecipeExporter.accept
(RegistryKey<Recipe<?>> key, Recipe<?> recipe, @Nullable AdvancementEntry advancement) Modifier 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) ModifierConstructorDescriptionComplexRecipeJsonBuilder
(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) SmithingTemplate
(Item item, RegistryKey<Recipe<?>> registryKey) -
Uses of Recipe in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.unlockRecipes
(List<RegistryKey<Recipe<?>>> recipes) -
Uses of Recipe in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate final Object2BooleanMap
<RegistryKey<Recipe<?>>> PlayerPredicate.Builder.recipes
private final Object2BooleanMap
<RegistryKey<Recipe<?>>> PlayerPredicate.recipes
The field for therecipes
record component.Modifier and TypeMethodDescriptionPlayerPredicate.recipes()
Returns the value of therecipes
record component.Modifier and TypeMethodDescriptionPlayerPredicate.Builder.recipe
(RegistryKey<Recipe<?>> recipeKey, boolean unlocked) ModifierConstructorDescriptionPlayerPredicate
(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
Modifier 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>> Modifier 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
Modifier and TypeFieldDescriptionprivate final T
RecipeEntry.value
The field for thevalue
record component.Modifier 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
Modifier 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> Modifier 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.Modifier 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) Modifier 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) ModifierConstructorDescriptionprivate
PreparedRecipes
(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) RecipeEntry
(RegistryKey<Recipe<?>> registryKey, T t) -
Uses of Recipe in net.minecraft.recipe.display
Modifier and TypeClassDescriptionfinal record
CuttingRecipeDisplay<T extends Recipe<?>>
static final record
CuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>
static final record
CuttingRecipeDisplay.Grouping<T extends Recipe<?>>
Modifier 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
Modifier and TypeFieldDescriptionstatic final RegistryKey
<Registry<Recipe<?>>> RegistryKeys.RECIPE
-
Uses of Recipe in net.minecraft.server.network
Modifier 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
Modifier 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)