Uses of Record Class
net.minecraft.recipe.RecipeEntry
Package
Description
-
Uses of RecipeEntry in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
RecipeUnlockedCriterion.Conditions.matches
(RecipeEntry<?> recipeEntry) void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, RecipeEntry<?> recipeEntry) -
Uses of RecipeEntry in net.minecraft.block.entity
Modifier and TypeMethodDescription@Nullable RecipeEntry<?>
AbstractFurnaceBlockEntity.getLastRecipe()
Modifier and TypeMethodDescriptionCampfireBlockEntity.getRecipeFor
(ItemStack stack) List<RecipeEntry<?>>
AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput
(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) private static boolean
AbstractFurnaceBlockEntity.craftRecipe
(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) void
AbstractFurnaceBlockEntity.setLastRecipe
(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.client.gui.screen.recipebook
Modifier and TypeFieldDescriptionprivate @Nullable RecipeEntry<?>
RecipeAlternativesWidget.lastClickedRecipe
private @Nullable RecipeEntry<?>
RecipeBookResults.lastClickedRecipe
(package private) final RecipeEntry<?>
RecipeAlternativesWidget.AlternativeButtonWidget.recipe
private @Nullable RecipeEntry<?>
RecipeBookGhostSlots.recipe
Modifier and TypeFieldDescriptionprivate final Set<RecipeEntry<?>>
RecipeResultCollection.craftableRecipes
private final Set<RecipeEntry<?>>
RecipeResultCollection.fittingRecipes
private final List<RecipeEntry<?>>
RecipeResultCollection.recipes
private final Set<RecipeEntry<?>>
RecipeResultCollection.unlockedRecipes
Modifier and TypeMethodDescriptionRecipeEntry<?>
AnimatedResultButton.currentRecipe()
@Nullable RecipeEntry<?>
RecipeAlternativesWidget.getLastClickedRecipe()
@Nullable RecipeEntry<?>
RecipeBookResults.getLastClickedRecipe()
@Nullable RecipeEntry<?>
RecipeBookGhostSlots.getRecipe()
Modifier and TypeMethodDescriptionList<RecipeEntry<?>>
RecipeResultCollection.getAllRecipes()
List<RecipeEntry<?>>
RecipeResultCollection.getRecipes
(boolean craftable) private List<RecipeEntry<?>>
AnimatedResultButton.getResults()
List<RecipeEntry<?>>
RecipeResultCollection.getResults
(boolean craftableOnly) Modifier and TypeMethodDescriptionprotected void
RecipeAlternativesWidget.AlternativeButtonWidget.alignRecipe
(RecipeEntry<?> recipe) protected void
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget.alignRecipe
(RecipeEntry<?> recipe) boolean
RecipeResultCollection.isCraftable
(RecipeEntry<?> recipe) void
RecipeBookGhostSlots.setRecipe
(RecipeEntry<?> recipe) void
AbstractFurnaceRecipeBookScreen.showGhostRecipe
(RecipeEntry<?> recipe, List<Slot> slots) void
RecipeBookWidget.showGhostRecipe
(RecipeEntry<?> recipe, List<Slot> slots) Modifier and TypeMethodDescriptionvoid
RecipeBookResults.onRecipesDisplayed
(List<RecipeEntry<?>> recipes) void
RecipeBookWidget.onRecipesDisplayed
(List<RecipeEntry<?>> recipes) void
RecipeDisplayListener.onRecipesDisplayed
(List<RecipeEntry<?>> recipes) private static boolean
RecipeResultCollection.shouldHaveSingleOutput
(DynamicRegistryManager registryManager, List<RecipeEntry<?>> recipes) ModifierConstructorDescriptionAlternativeButtonWidget
(int x, int y, RecipeEntry<?> recipe, boolean craftable) FurnaceAlternativeButtonWidget
(int x, int y, RecipeEntry<?> recipe, boolean craftable) ModifierConstructorDescriptionRecipeResultCollection
(DynamicRegistryManager registryManager, List<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.client.network
Modifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.clickRecipe
(int syncId, RecipeEntry<?> recipe, boolean craftAll) void
ClientPlayerEntity.onRecipeDisplayed
(RecipeEntry<?> recipeEntry) -
Uses of RecipeEntry in net.minecraft.client.recipebook
Modifier and TypeMethodDescriptionprivate static Map<RecipeBookGroup,
List<List<RecipeEntry<?>>>> ClientRecipeBook.toGroupedMap
(Iterable<RecipeEntry<?>> recipes) Modifier and TypeMethodDescriptionprivate static RecipeBookGroup
ClientRecipeBook.getGroupForRecipe
(RecipeEntry<?> recipe) Modifier and TypeMethodDescriptionvoid
ClientRecipeBook.reload
(Iterable<RecipeEntry<?>> recipes, DynamicRegistryManager registryManager) private static Map<RecipeBookGroup,
List<List<RecipeEntry<?>>>> ClientRecipeBook.toGroupedMap
(Iterable<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.client.toast
Modifier and TypeMethodDescriptionprivate void
RecipeToast.addRecipes
(RecipeEntry<?> recipe) static void
RecipeToast.show
(ToastManager manager, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic RecipeEntry<?>
IdentifierArgumentType.getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of RecipeEntry in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Modifier and TypeMethodDescriptionint
PlayerEntity.lockRecipes
(Collection<RecipeEntry<?>> recipes) int
PlayerEntity.unlockRecipes
(Collection<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.inventory
Modifier and TypeFieldDescriptionprivate @Nullable RecipeEntry<?>
CraftingResultInventory.lastRecipe
Modifier and TypeMethodDescription@Nullable RecipeEntry<?>
CraftingResultInventory.getLastRecipe()
Modifier and TypeMethodDescriptionvoid
CraftingResultInventory.setLastRecipe
(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.network.packet.c2s.play
ModifierConstructorDescriptionCraftRequestC2SPacket
(int syncId, RecipeEntry<?> recipe, boolean craftAll) RecipeBookDataC2SPacket
(RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final List<RecipeEntry<?>>
SynchronizeRecipesS2CPacket.recipes
Modifier and TypeMethodDescriptionprivate static RecipeEntry<?>
SynchronizeRecipesS2CPacket.readRecipe
(PacketByteBuf buf) Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidSynchronizeRecipesS2CPacket.writeRecipe
(PacketByteBuf buf, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.recipe
Modifier and TypeFieldDescriptionprivate Map<RecipeType<?>,
Map<Identifier, RecipeEntry<?>>> RecipeManager.recipes
private Map<Identifier,
RecipeEntry<?>> RecipeManager.recipesById
Modifier and TypeMethodDescriptionprotected static RecipeEntry<?>
RecipeManager.deserialize
(Identifier id, com.google.gson.JsonObject json) Reads a recipe from a JSON object.@Nullable RecipeEntry<?>
RecipeUnlocker.getLastRecipe()
Modifier and TypeMethodDescriptionOptional<RecipeEntry<?>>
RecipeManager.get
(Identifier id) Returns a recipe with the givenid
, or empty if there is no such recipe.<C extends Inventory,
T extends Recipe<C>>
List<RecipeEntry<T>>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,RecipeEntry<T>> RecipeManager.getAllOfType
(RecipeType<T> type) <C extends Inventory,
T extends Recipe<C>>
Optional<RecipeEntry<T>>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,RecipeEntry<T>>> RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world, @Nullable Identifier id) RecipeManager.MatchGetter.getFirstMatch
(C inventory, World world) <C extends Inventory,
T extends Recipe<C>>
List<RecipeEntry<T>>RecipeManager.listAllOfType
(RecipeType<T> type) Creates a list of all recipes of the giventype
.RecipeManager.values()
Returns all recipes in this manager.Modifier and TypeMethodDescriptiondefault void
RecipeGridAligner.alignRecipeToGrid
(int gridWidth, int gridHeight, int gridOutputSlot, RecipeEntry<?> recipe, Iterator<T> inputs, int amount) int
RecipeMatcher.countCrafts
(RecipeEntry<?> 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
(RecipeEntry<?> 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
(RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) void
InputSlotFiller.fillInputSlots
(ServerPlayerEntity entity, @Nullable RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) void
RecipeUnlocker.setLastRecipe
(@Nullable RecipeEntry<?> recipe) default boolean
RecipeUnlocker.shouldCraftRecipe
(World world, ServerPlayerEntity player, RecipeEntry<?> recipe) Modifier and TypeMethodDescriptionvoid
RecipeManager.setRecipes
(Iterable<RecipeEntry<?>> recipes) Sets the recipes for this recipe manager. -
Uses of RecipeEntry in net.minecraft.recipe.book
Modifier and TypeMethodDescriptionvoid
RecipeBook.add
(RecipeEntry<?> recipe) boolean
RecipeBook.contains
(@Nullable RecipeEntry<?> recipe) void
RecipeBook.display
(RecipeEntry<?> recipe) void
RecipeBook.onRecipeDisplayed
(RecipeEntry<?> recipe) void
RecipeBook.remove
(RecipeEntry<?> recipe) boolean
RecipeBook.shouldDisplay
(RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.screen
Modifier and TypeFieldDescriptionprivate @Nullable RecipeEntry<SmithingRecipe>
SmithingScreenHandler.currentRecipe
Modifier and TypeFieldDescriptionprivate List<RecipeEntry<StonecuttingRecipe>>
StonecutterScreenHandler.availableRecipes
private final List<RecipeEntry<SmithingRecipe>>
SmithingScreenHandler.recipes
Modifier and TypeMethodDescriptionvoid
AbstractRecipeScreenHandler.fillInputSlots
(boolean craftAll, RecipeEntry<?> recipe, ServerPlayerEntity player) boolean
AbstractFurnaceScreenHandler.matches
(RecipeEntry<? extends Recipe<Inventory>> recipe) abstract boolean
AbstractRecipeScreenHandler.matches
(RecipeEntry<? extends Recipe<C>> recipe) boolean
CraftingScreenHandler.matches
(RecipeEntry<? extends Recipe<RecipeInputInventory>> recipe) boolean
PlayerScreenHandler.matches
(RecipeEntry<? extends Recipe<RecipeInputInventory>> recipe) -
Uses of RecipeEntry in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Modifier and TypeMethodDescriptionprivate void
ServerRecipeBook.handleList
(NbtList list, Consumer<RecipeEntry<?>> handler, RecipeManager recipeManager) int
ServerPlayerEntity.lockRecipes
(Collection<RecipeEntry<?>> recipes) int
ServerRecipeBook.lockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) int
ServerPlayerEntity.unlockRecipes
(Collection<RecipeEntry<?>> recipes) int
ServerRecipeBook.unlockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)