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.recipesprivate final List<RegistryKey<Recipe<?>>> AdvancementRewards.recipesThe field for therecipesrecord component.Methods in net.minecraft.advancement that return types with arguments of type RecipeModifier and TypeMethodDescriptionList<RegistryKey<Recipe<?>>> AdvancementRewards.recipes()Returns the value of therecipesrecord component.Method parameters in net.minecraft.advancement with type arguments of type RecipeModifier and TypeMethodDescriptionAdvancementRewards.Builder.addRecipe(RegistryKey<Recipe<?>> recipeKey) static AdvancementRewards.BuilderAdvancementRewards.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.recipeThe field for thereciperecord component.private final RegistryKey<Recipe<?>> RecipeCraftedCriterion.Conditions.recipeIdThe field for therecipeIdrecord 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 thereciperecord component.RegistryKey<Recipe<?>> RecipeCraftedCriterion.Conditions.recipeId()Returns the value of therecipeIdrecord 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) booleanRecipeCraftedCriterion.Conditions.matches(RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) voidRecipeCraftedCriterion.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 static final com.mojang.serialization.Codec<Map<RegistryKey<Recipe<?>>, Integer>> AbstractFurnaceBlockEntity.CODECprivate 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 Function<CraftingRecipeCategory, Recipe<?>> ComplexRecipeJsonBuilder.recipeFactoryprivate final RegistryKey<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.recipeIdThe field for therecipeIdrecord component.Methods in net.minecraft.data.recipe that return types with arguments of type RecipeModifier and TypeMethodDescriptionRegistryKey<Recipe<?>> VanillaRecipeGenerator.SmithingTemplate.recipeId()Returns the value of therecipeIdrecord component.Methods in net.minecraft.data.recipe with parameters of type RecipeModifier and TypeMethodDescriptionvoidRecipeExporter.accept(RegistryKey<Recipe<?>> key, Recipe<?> recipe, @Nullable AdvancementEntry advancement) Method parameters in net.minecraft.data.recipe with type arguments of type RecipeModifier and TypeMethodDescriptionvoidRecipeExporter.accept(RegistryKey<Recipe<?>> key, Recipe<?> recipe, @Nullable AdvancementEntry advancement) static ComplexRecipeJsonBuilderComplexRecipeJsonBuilder.create(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) voidComplexRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidCookingRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidCraftingRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidShapedRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidShapelessRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidSmithingTransformRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidSmithingTrimRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidStonecuttingRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) voidTransmuteRecipeJsonBuilder.offerTo(RecipeExporter exporter, RegistryKey<Recipe<?>> recipeKey) private voidCookingRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private RawShapedRecipeShapedRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private voidShapelessRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private voidSmithingTransformRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private voidSmithingTrimRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private voidStonecuttingRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) private voidTransmuteRecipeJsonBuilder.validate(RegistryKey<Recipe<?>> recipeKey) Constructor parameters in net.minecraft.data.recipe with type arguments of type RecipeModifierConstructorDescriptionComplexRecipeJsonBuilder(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) -
Uses of Recipe in net.minecraft.entity.player
Method parameters in net.minecraft.entity.player with type arguments of type RecipeModifier and TypeMethodDescriptionvoidPlayerEntity.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.recipesprivate final Object2BooleanMap<RegistryKey<Recipe<?>>> PlayerPredicate.recipesThe field for therecipesrecord component.Methods in net.minecraft.predicate.entity that return types with arguments of type RecipeModifier and TypeMethodDescriptionPlayerPredicate.recipes()Returns the value of therecipesrecord 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 TypeClassDescriptionclassInputSlotFiller<R extends Recipe<?>>static interfaceInputSlotFiller.Handler<T extends Recipe<?>>final recordRecipeEntry<T extends Recipe<?>>interfaceRecipeSerializer<T extends Recipe<?>>The recipe serializer controls the deserialization of recipe content during data pack loading.interfaceRecipeType<T extends Recipe<?>>The recipe type allows matching recipes more efficiently by only checking recipes under a given type.static interfaceServerRecipeManager.MatchGetter<I extends RecipeInput,T extends Recipe<I>> Subinterfaces of Recipe in net.minecraft.recipeClasses in net.minecraft.recipe that implement RecipeModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassA recipe that has only one input ingredient.classclassclassclassclassclassclassclassFields in net.minecraft.recipe declared as RecipeModifier and TypeFieldDescriptionprivate final TRecipeEntry.valueThe field for thevaluerecord component.Fields in net.minecraft.recipe with type parameters of type RecipeModifier and TypeFieldDescriptionprivate final Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> PreparedRecipes.byKeystatic final com.mojang.serialization.Codec<Recipe<?>> Recipe.CODECprivate final RegistryKey<Recipe<?>> RecipeEntry.idThe field for theidrecord component.static final com.mojang.serialization.Codec<RegistryKey<Recipe<?>>> Recipe.KEY_CODECstatic final PacketCodec<RegistryByteBuf, Recipe<?>> Recipe.PACKET_CODECprivate Map<RegistryKey<Recipe<?>>, List<ServerRecipeManager.ServerRecipe>> ServerRecipeManager.recipesByKeyMethods 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 givenidandtype, 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 giventypethat match the giveninventoryandworld.<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 theidrecord component.Methods in net.minecraft.recipe with parameters of type RecipeModifier and TypeMethodDescriptionvoidstatic <T> voidRecipeGridAligner.alignRecipeToGrid(int width, int height, Recipe<?> recipe, Iterable<T> slots, RecipeGridAligner.Filler<T> filter) intRecipeFinder.countCrafts(Recipe<?> recipe, int max, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) intRecipeFinder.countCrafts(Recipe<?> recipe, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) booleanRecipeFinder.isCraftable(Recipe<?> recipe, int quantity, RecipeMatcher.ItemCallback<RegistryEntry<Item>> itemCallback) booleanRecipeFinder.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.voidServerRecipeManager.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 givenidandtype, 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 RecipeModifierConstructorDescriptionprivatePreparedRecipes(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 recordCuttingRecipeDisplay<T extends Recipe<?>>static final recordCuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>static final recordCuttingRecipeDisplay.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.highlightedContains recipes that play an animation when first viewed on the recipe book.private static final com.mojang.serialization.Codec<List<RegistryKey<Recipe<?>>>> ServerRecipeBook.RECIPES_CODECprotected final Set<RegistryKey<Recipe<?>>> ServerRecipeBook.unlockedMethod parameters in net.minecraft.server.network with type arguments of type RecipeModifier and TypeMethodDescriptionvoidServerRecipeBook.DisplayCollector.displaysForRecipe(RegistryKey<Recipe<?>> recipeKey, Consumer<RecipeDisplayEntry> adder) private voidServerRecipeBook.handleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) private voidServerRecipeBook.handleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) private voidServerRecipeBook.handleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate) booleanServerRecipeBook.isUnlocked(RegistryKey<Recipe<?>> recipeKey) voidServerRecipeBook.lock(RegistryKey<Recipe<?>> recipeKey) private voidServerRecipeBook.markHighlighted(RegistryKey<Recipe<?>> recipeKey) voidServerRecipeBook.readNbt(NbtCompound nbt, Predicate<RegistryKey<Recipe<?>>> validPredicate) voidServerRecipeBook.unlock(RegistryKey<Recipe<?>> recipeKey) voidServerPlayerEntity.unlockRecipes(List<RegistryKey<Recipe<?>>> recipes) voidServerRecipeBook.unmarkHighlighted(RegistryKey<Recipe<?>> recipeKey)