Uses of Record Class
net.minecraft.recipe.RecipeEntry
Packages that use RecipeEntry
Package
Description
-
Uses of RecipeEntry in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type RecipeEntryModifier and TypeMethodDescriptionboolean
RecipeUnlockedCriterion.Conditions.matches
(RecipeEntry<?> recipe) void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block
Methods in net.minecraft.block that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionstatic Optional
<RecipeEntry<CraftingRecipe>> CrafterBlock.getCraftingRecipe
(World world, RecipeInputInventory inputInventory) Methods in net.minecraft.block with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate void
CrafterBlock.transferOrSpawnStack
(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<CraftingRecipe> recipe) -
Uses of RecipeEntry in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return RecipeEntryMethods in net.minecraft.block.entity that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionCampfireBlockEntity.getRecipeFor
(ItemStack stack) List
<RecipeEntry<?>> AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) Methods in net.minecraft.block.entity with parameters of type RecipeEntryModifier 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
Fields in net.minecraft.client.gui.screen.recipebook declared as RecipeEntryModifier and TypeFieldDescriptionprivate @Nullable RecipeEntry
<?> RecipeAlternativesWidget.lastClickedRecipe
private @Nullable RecipeEntry
<?> RecipeBookResults.lastClickedRecipe
(package private) final RecipeEntry
<?> RecipeAlternativesWidget.AlternativeButtonWidget.recipe
private @Nullable RecipeEntry
<?> RecipeBookGhostSlots.recipe
Fields in net.minecraft.client.gui.screen.recipebook with type parameters of type RecipeEntryModifier 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
Methods in net.minecraft.client.gui.screen.recipebook that return RecipeEntryModifier and TypeMethodDescriptionRecipeEntry
<?> AnimatedResultButton.currentRecipe()
RecipeAlternativesWidget.getLastClickedRecipe()
RecipeBookResults.getLastClickedRecipe()
RecipeBookGhostSlots.getRecipe()
Methods in net.minecraft.client.gui.screen.recipebook that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionList
<RecipeEntry<?>> RecipeResultCollection.getAllRecipes()
List
<RecipeEntry<?>> RecipeResultCollection.getRecipes
(boolean craftable) private List
<RecipeEntry<?>> AnimatedResultButton.getResults()
List
<RecipeEntry<?>> RecipeResultCollection.getResults
(boolean craftableOnly) Methods in net.minecraft.client.gui.screen.recipebook with parameters of type RecipeEntryModifier 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) Method parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type RecipeEntryModifier 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) Constructors in net.minecraft.client.gui.screen.recipebook with parameters of type RecipeEntryModifierConstructorDescriptionAlternativeButtonWidget
(int x, int y, RecipeEntry<?> recipe, boolean craftable) FurnaceAlternativeButtonWidget
(int x, int y, RecipeEntry<?> recipe, boolean craftable) Constructor parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type RecipeEntryModifierConstructorDescriptionRecipeResultCollection
(DynamicRegistryManager registryManager, List<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.clickRecipe
(int syncId, RecipeEntry<?> recipe, boolean craftAll) void
ClientPlayerEntity.onRecipeDisplayed
(RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.client.recipebook
Methods in net.minecraft.client.recipebook that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionprivate static Map
<RecipeBookGroup, List<List<RecipeEntry<?>>>> ClientRecipeBook.toGroupedMap
(Iterable<RecipeEntry<?>> recipes) Methods in net.minecraft.client.recipebook with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate static RecipeBookGroup
ClientRecipeBook.getGroupForRecipe
(RecipeEntry<?> recipe) Method parameters in net.minecraft.client.recipebook with type arguments of type RecipeEntryModifier 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
Fields in net.minecraft.client.toast with type parameters of type RecipeEntryMethods in net.minecraft.client.toast with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate void
RecipeToast.addRecipes
(RecipeEntry<?> recipe) static void
RecipeToast.show
(ToastManager manager, RecipeEntry<?> recipe) Constructors in net.minecraft.client.toast with parameters of type RecipeEntry -
Uses of RecipeEntry in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return RecipeEntryModifier and TypeMethodDescriptionstatic RecipeEntry
<?> IdentifierArgumentType.getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of RecipeEntry in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoid
PlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.entity.player with type arguments of type RecipeEntryModifier and TypeMethodDescriptionint
PlayerEntity.lockRecipes
(Collection<RecipeEntry<?>> recipes) int
PlayerEntity.unlockRecipes
(Collection<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.inventory
Fields in net.minecraft.inventory declared as RecipeEntryModifier and TypeFieldDescriptionprivate @Nullable RecipeEntry
<?> CraftingResultInventory.lastRecipe
Methods in net.minecraft.inventory that return RecipeEntryMethods in net.minecraft.inventory with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoid
CraftingResultInventory.setLastRecipe
(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.network.packet.c2s.play
Constructors in net.minecraft.network.packet.c2s.play with parameters of type RecipeEntryModifierConstructorDescriptionCraftRequestC2SPacket
(int syncId, RecipeEntry<?> recipe, boolean craftAll) RecipeBookDataC2SPacket
(RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type RecipeEntryModifier and TypeFieldDescriptionprivate final List
<RecipeEntry<?>> SynchronizeRecipesS2CPacket.recipes
Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type RecipeEntryConstructors in net.minecraft.network.packet.s2c.play with parameters of type RecipeEntryConstructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type RecipeEntry -
Uses of RecipeEntry in net.minecraft.recipe
Fields in net.minecraft.recipe declared as RecipeEntryModifier and TypeFieldDescriptionprivate final @Nullable RecipeEntry
<CraftingRecipe> RecipeCache.CachedRecipe.value
The field for thevalue
record component.Fields in net.minecraft.recipe with type parameters of type RecipeEntryModifier and TypeFieldDescriptionprivate Multimap
<RecipeType<?>, RecipeEntry<?>> RecipeManager.field_51481
static final PacketCodec
<RegistryByteBuf, RecipeEntry<?>> RecipeEntry.PACKET_CODEC
private Map
<Identifier, RecipeEntry<?>> RecipeManager.recipesById
Methods in net.minecraft.recipe that return RecipeEntryModifier and TypeMethodDescriptionprotected static RecipeEntry
<?> RecipeManager.deserialize
(Identifier id, JsonObject json, RegistryWrapper.WrapperLookup registryLookup) Reads a recipe from a JSON object.RecipeUnlocker.getLastRecipe()
private <T extends Recipe<?>>
@Nullable RecipeEntry<T> RecipeManager.method_59821
(RecipeType<T> recipeType, Identifier identifier) RecipeCache.CachedRecipe.value()
Returns the value of thevalue
record component.Methods in net.minecraft.recipe that return types with arguments of type RecipeEntryModifier 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>>
Collection<RecipeEntry<T>> RecipeManager.getAllOfType
(RecipeType<T> type) private Optional
<RecipeEntry<CraftingRecipe>> RecipeCache.getAndCacheRecipe
(RecipeInputInventory inputInventory, World world) <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<RecipeEntry<T>> RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world, @Nullable Identifier id) RecipeManager.MatchGetter.getFirstMatch
(C inventory, World world) RecipeCache.getRecipe
(World world, RecipeInputInventory inputInventory) <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.method_59822()
RecipeManager.values()
Returns all recipes in this manager.Methods in net.minecraft.recipe with parameters of type RecipeEntryModifier and TypeMethodDescriptiondefault void
RecipeGridAligner.alignRecipeToGrid
(int gridWidth, int gridHeight, int gridOutputSlot, RecipeEntry<?> recipe, Iterator<T> inputs, int amount) private void
RecipeCache.cache
(List<ItemStack> inputStacks, @Nullable RecipeEntry<CraftingRecipe> recipe) 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) Method parameters in net.minecraft.recipe with type arguments of type RecipeEntryModifier and TypeMethodDescriptionvoid
RecipeManager.setRecipes
(Iterable<RecipeEntry<?>> recipes) Sets the recipes for this recipe manager.Constructors in net.minecraft.recipe with parameters of type RecipeEntryModifierConstructorDescription(package private)
CachedRecipe
(DefaultedList<ItemStack> defaultedList, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) -
Uses of RecipeEntry in net.minecraft.recipe.book
Methods in net.minecraft.recipe.book with parameters of type RecipeEntryModifier 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
Fields in net.minecraft.screen declared as RecipeEntryModifier and TypeFieldDescriptionprivate @Nullable RecipeEntry
<SmithingRecipe> SmithingScreenHandler.currentRecipe
Fields in net.minecraft.screen with type parameters of type RecipeEntryModifier and TypeFieldDescriptionprivate List
<RecipeEntry<StonecuttingRecipe>> StonecutterScreenHandler.availableRecipes
private final List
<RecipeEntry<SmithingRecipe>> SmithingScreenHandler.recipes
Methods in net.minecraft.screen that return types with arguments of type RecipeEntryMethods in net.minecraft.screen with parameters of type RecipeEntryModifier 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
Methods in net.minecraft.server.network with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.server.network with type arguments of type RecipeEntryModifier 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)