Uses of Interface
net.minecraft.recipe.Recipe
Packages that use Recipe
Package
Description
-
Uses of Recipe in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type RecipeModifier and TypeMethodDescriptionboolean
void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, Recipe<?> recipe) -
Uses of Recipe in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return RecipeMethods in net.minecraft.block.entity that return types with arguments of type RecipeModifier and TypeMethodDescriptionAbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) Methods in net.minecraft.block.entity with parameters of type RecipeModifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput
(DynamicRegistryManager registryManager, @Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) private static boolean
AbstractFurnaceBlockEntity.craftRecipe
(DynamicRegistryManager registryManager, @Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) void
AbstractFurnaceBlockEntity.setLastRecipe
(@Nullable Recipe<?> recipe) -
Uses of Recipe in net.minecraft.client.gui.screen.recipebook
Fields in net.minecraft.client.gui.screen.recipebook declared as RecipeModifier and TypeFieldDescriptionRecipeAlternativesWidget.lastClickedRecipe
RecipeBookResults.lastClickedRecipe
(package private) final Recipe<?>
RecipeAlternativesWidget.AlternativeButtonWidget.recipe
RecipeBookGhostSlots.recipe
Fields in net.minecraft.client.gui.screen.recipebook with type parameters of type RecipeModifier and TypeFieldDescriptionRecipeResultCollection.craftableRecipes
RecipeResultCollection.fittingRecipes
RecipeResultCollection.recipes
RecipeResultCollection.unlockedRecipes
Methods in net.minecraft.client.gui.screen.recipebook that return RecipeModifier and TypeMethodDescriptionRecipe<?>
AnimatedResultButton.currentRecipe()
RecipeAlternativesWidget.getLastClickedRecipe()
RecipeBookResults.getLastClickedRecipe()
RecipeBookGhostSlots.getRecipe()
Methods in net.minecraft.client.gui.screen.recipebook that return types with arguments of type RecipeModifier and TypeMethodDescriptionRecipeResultCollection.getAllRecipes()
RecipeResultCollection.getRecipes
(boolean craftable) AnimatedResultButton.getResults()
RecipeResultCollection.getResults
(boolean craftableOnly) Methods in net.minecraft.client.gui.screen.recipebook with parameters of type RecipeModifier and TypeMethodDescriptionprotected void
RecipeAlternativesWidget.AlternativeButtonWidget.alignRecipe
(Recipe<?> recipe) protected void
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget.alignRecipe
(Recipe<?> recipe) boolean
RecipeResultCollection.isCraftable
(Recipe<?> recipe) void
void
AbstractFurnaceRecipeBookScreen.showGhostRecipe
(Recipe<?> recipe, List<Slot> slots) void
RecipeBookWidget.showGhostRecipe
(Recipe<?> recipe, List<Slot> slots) Method parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
RecipeBookResults.onRecipesDisplayed
(List<Recipe<?>> recipes) void
RecipeBookWidget.onRecipesDisplayed
(List<Recipe<?>> recipes) void
RecipeDisplayListener.onRecipesDisplayed
(List<Recipe<?>> recipes) private static boolean
RecipeResultCollection.shouldHaveSingleOutput
(DynamicRegistryManager registryManager, List<Recipe<?>> recipes) Constructors in net.minecraft.client.gui.screen.recipebook with parameters of type RecipeModifierConstructorDescriptionAlternativeButtonWidget
(int x, int y, Recipe<?> recipe, boolean craftable) FurnaceAlternativeButtonWidget
(int x, int y, Recipe<?> recipe, boolean craftable) Constructor parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type RecipeModifierConstructorDescriptionRecipeResultCollection
(DynamicRegistryManager registryManager, List<Recipe<?>> recipes) -
Uses of Recipe in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type RecipeModifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.clickRecipe
(int syncId, Recipe<?> recipe, boolean craftAll) void
ClientPlayerEntity.onRecipeDisplayed
(Recipe<?> recipe) -
Uses of Recipe in net.minecraft.client.recipebook
Methods in net.minecraft.client.recipebook that return types with arguments of type RecipeModifier and TypeMethodDescriptionprivate static Map<RecipeBookGroup,
List<List<Recipe<?>>>> ClientRecipeBook.toGroupedMap
(Iterable<Recipe<?>> recipes) Methods in net.minecraft.client.recipebook with parameters of type RecipeModifier and TypeMethodDescriptionprivate static RecipeBookGroup
ClientRecipeBook.getGroupForRecipe
(Recipe<?> recipe) Method parameters in net.minecraft.client.recipebook with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
ClientRecipeBook.reload
(Iterable<Recipe<?>> recipes, DynamicRegistryManager registryManager) private static Map<RecipeBookGroup,
List<List<Recipe<?>>>> ClientRecipeBook.toGroupedMap
(Iterable<Recipe<?>> recipes) -
Uses of Recipe in net.minecraft.client.toast
Fields in net.minecraft.client.toast with type parameters of type RecipeMethods in net.minecraft.client.toast with parameters of type RecipeModifier and TypeMethodDescriptionprivate void
RecipeToast.addRecipes
(Recipe<?> recipes) static void
RecipeToast.show
(ToastManager manager, Recipe<?> recipes) Constructors in net.minecraft.client.toast with parameters of type Recipe -
Uses of Recipe in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return RecipeModifier and TypeMethodDescriptionstatic Recipe<?>
IdentifierArgumentType.getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of Recipe in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type RecipeModifier and TypeMethodDescriptionvoid
PlayerEntity.unlockCraftedRecipe
(Recipe<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.entity.player with type arguments of type RecipeModifier and TypeMethodDescriptionint
PlayerEntity.lockRecipes
(Collection<Recipe<?>> recipes) int
PlayerEntity.unlockRecipes
(Collection<Recipe<?>> recipes) -
Uses of Recipe in net.minecraft.inventory
Fields in net.minecraft.inventory declared as RecipeMethods in net.minecraft.inventory that return RecipeMethods in net.minecraft.inventory with parameters of type RecipeModifier and TypeMethodDescriptionvoid
CraftingResultInventory.setLastRecipe
(@Nullable Recipe<?> recipe) -
Uses of Recipe in net.minecraft.network.packet.c2s.play
Constructors in net.minecraft.network.packet.c2s.play with parameters of type RecipeModifierConstructorDescriptionCraftRequestC2SPacket
(int syncId, Recipe<?> recipe, boolean craftAll) RecipeBookDataC2SPacket
(Recipe<?> recipe) -
Uses of Recipe in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type RecipeMethods in net.minecraft.network.packet.s2c.play with type parameters of type RecipeModifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidSynchronizeRecipesS2CPacket.writeRecipe
(PacketByteBuf buf, T recipe) Methods in net.minecraft.network.packet.s2c.play that return RecipeModifier and TypeMethodDescriptionstatic Recipe<?>
SynchronizeRecipesS2CPacket.readRecipe
(PacketByteBuf buf) Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type RecipeConstructors in net.minecraft.network.packet.s2c.play with parameters of type RecipeConstructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type Recipe -
Uses of Recipe in net.minecraft.recipe
Classes in net.minecraft.recipe with type parameters of type RecipeModifier and TypeInterfaceDescriptionstatic interface
RecipeManager.MatchGetter<C extends Inventory,
T extends Recipe<C>> interface
RecipeSerializer<T extends Recipe<?>>
The recipe serializer controls the serialization and deserialization of recipe content.interface
RecipeType<T extends Recipe<?>>
The recipe type allows matching recipes more efficiently by only checking recipes under a given type.Subinterfaces of Recipe in net.minecraft.recipeClasses in net.minecraft.recipe that implement RecipeModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
A recipe that has only one input ingredient.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.recipe declared as RecipeFields in net.minecraft.recipe with type parameters of type RecipeModifier and TypeFieldDescriptionprivate Map<RecipeType<?>,
Map<Identifier, Recipe<?>>> RecipeManager.recipes
private Map<Identifier,
Recipe<?>> RecipeManager.recipesById
Methods in net.minecraft.recipe with type parameters of type RecipeModifier and TypeMethodDescriptionstatic <C extends Inventory,
T extends Recipe<C>>
RecipeManager.MatchGetter<C,T> RecipeManager.createCachedMatchGetter
(RecipeType<T> type) Creates a cached match getter.RecipeManager.getAllMatches
(RecipeType<T> type, C inventory, World world) Creates a list of all recipes of the giventype
that match the giveninventory
andworld
.private <C extends Inventory,
T extends Recipe<C>>
Map<Identifier,T> RecipeManager.getAllOfType
(RecipeType<T> type) RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world) Returns a recipe of the giventype
that match the giveninventory
andworld
.<C extends Inventory,
T extends Recipe<C>>
Optional<com.mojang.datafixers.util.Pair<Identifier,T>> RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world, @Nullable Identifier id) <C extends Inventory,
T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager.getRemainingStacks
(RecipeType<T> type, C inventory, World world) Returns the remainder of a recipe of the giventype
that match the giveninventory
andworld
, or a shallow copy of theinventory
.RecipeManager.listAllOfType
(RecipeType<T> type) Creates a list of all recipes of the giventype
.static <S extends RecipeSerializer<T>,
T extends Recipe<?>>
Sstatic <T extends Recipe<?>>
RecipeType<T>Methods in net.minecraft.recipe that return RecipeModifier and TypeMethodDescriptionstatic Recipe<?>
RecipeManager.deserialize
(Identifier id, JsonObject json) Reads a recipe from a JSON object.RecipeUnlocker.getLastRecipe()
Methods in net.minecraft.recipe that return types with arguments of type RecipeModifier and TypeMethodDescriptionRecipeManager.get
(Identifier id) Returns a recipe with the givenid
, or empty if there is no such recipe.Collection<Recipe<?>>
RecipeManager.values()
Returns all recipes in this manager.Methods in net.minecraft.recipe with parameters of type RecipeModifier and TypeMethodDescriptiondefault void
RecipeGridAligner.alignRecipeToGrid
(int gridWidth, int gridHeight, int gridOutputSlot, Recipe<?> recipe, Iterator<T> inputs, int amount) int
RecipeMatcher.countCrafts
(Recipe<?> recipe, int limit, @Nullable IntList output) Determines the number of crafts that can be produced for a recipe using the collected resources available to this crafter.int
RecipeMatcher.countCrafts
(Recipe<?> recipe, @Nullable IntList output) Determines the number of crafts that can be produced for a recipe using the collected resources available to this crafter.protected void
InputSlotFiller.fillInputSlots
(Recipe<C> recipe, boolean craftAll) void
InputSlotFiller.fillInputSlots
(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll) boolean
Attempts to match the recipe against the collected inputs.boolean
Attempts to match the recipe against the collected inputs.void
RecipeUnlocker.setLastRecipe
(@Nullable Recipe<?> recipe) default boolean
RecipeUnlocker.shouldCraftRecipe
(World world, ServerPlayerEntity player, Recipe<?> recipe) Method parameters in net.minecraft.recipe with type arguments of type RecipeModifier and TypeMethodDescriptionvoid
RecipeManager.setRecipes
(Iterable<Recipe<?>> recipes) Sets the recipes for this recipe manager.Constructors in net.minecraft.recipe with parameters of type Recipe -
Uses of Recipe in net.minecraft.recipe.book
Methods in net.minecraft.recipe.book with parameters of type RecipeModifier and TypeMethodDescriptionvoid
boolean
void
void
RecipeBook.onRecipeDisplayed
(Recipe<?> recipe) void
boolean
RecipeBook.shouldDisplay
(Recipe<?> recipe) -
Uses of Recipe in net.minecraft.screen
Methods in net.minecraft.screen with parameters of type RecipeModifier and TypeMethodDescriptionvoid
AbstractRecipeScreenHandler.fillInputSlots
(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player) boolean
abstract boolean
boolean
CraftingScreenHandler.matches
(Recipe<? super RecipeInputInventory> recipe) boolean
PlayerScreenHandler.matches
(Recipe<? super RecipeInputInventory> recipe) -
Uses of Recipe in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type RecipeModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.unlockCraftedRecipe
(Recipe<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.server.network with type arguments of type RecipeModifier and TypeMethodDescriptionprivate void
ServerRecipeBook.handleList
(NbtList list, Consumer<Recipe<?>> handler, RecipeManager recipeManager) int
ServerPlayerEntity.lockRecipes
(Collection<Recipe<?>> recipes) int
ServerRecipeBook.lockRecipes
(Collection<Recipe<?>> recipes, ServerPlayerEntity player) int
ServerPlayerEntity.unlockRecipes
(Collection<Recipe<?>> recipes) int
ServerRecipeBook.unlockRecipes
(Collection<Recipe<?>> recipes, ServerPlayerEntity player)