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<?> recipe) void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block
Modifier and TypeMethodDescriptionstatic Optional
<RecipeEntry<CraftingRecipe>> CrafterBlock.getCraftingRecipe
(World world, CraftingRecipeInput input) Modifier 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
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()
RecipeAlternativesWidget.getLastClickedRecipe()
RecipeBookResults.getLastClickedRecipe()
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<?> recipe) -
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 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
-
Uses of RecipeEntry in net.minecraft.recipe
Modifier and TypeFieldDescriptionprivate final @Nullable RecipeEntry
<CraftingRecipe> RecipeCache.CachedRecipe.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, RecipeEntry<?>> RecipeEntry.PACKET_CODEC
private Map
<Identifier, RecipeEntry<?>> RecipeManager.recipesById
private Multimap
<RecipeType<?>, RecipeEntry<?>> RecipeManager.recipesByType
Modifier and TypeMethodDescriptionprotected static RecipeEntry
<?> RecipeManager.deserialize
(Identifier id, JsonObject json, RegistryWrapper.WrapperLookup registryLookup) Reads a recipe from a JSON object.private <T extends Recipe<?>>
@Nullable RecipeEntry<T> RecipeManager.get
(RecipeType<T> type, Identifier id) Returns a recipe with the givenid
andtype
, or empty if there is no such recipe.RecipeUnlocker.getLastRecipe()
RecipeCache.CachedRecipe.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionOptional
<RecipeEntry<?>> RecipeManager.get
(Identifier id) Returns a recipe with the givenid
, or empty if there is no such recipe.<I extends RecipeInput,
T extends Recipe<I>>
List<RecipeEntry<T>> RecipeManager.getAllMatches
(RecipeType<T> type, I input, World world) Creates a list of all recipes of the giventype
that match the giveninventory
andworld
.private <I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeEntry<T>> RecipeManager.getAllOfType
(RecipeType<T> type) private Optional
<RecipeEntry<CraftingRecipe>> RecipeCache.getAndCacheRecipe
(CraftingRecipeInput input, World world) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> RecipeManager.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>> RecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RecipeEntry<T> recipe) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> RecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable Identifier id) RecipeManager.MatchGetter.getFirstMatch
(I input, World world) RecipeCache.getRecipe
(World world, CraftingRecipeInput input) <I extends RecipeInput,
T extends Recipe<I>>
List<RecipeEntry<T>> RecipeManager.listAllOfType
(RecipeType<T> type) Creates a list of all recipes of the giventype
.RecipeManager.sortedValues()
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) private void
RecipeCache.cache
(CraftingRecipeInput input, @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<R> recipe, boolean craftAll) void
InputSlotFiller.fillInputSlots
(ServerPlayerEntity entity, @Nullable RecipeEntry<R> recipe, boolean craftAll) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> RecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RecipeEntry<T> recipe) 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.ModifierConstructorDescription(package private)
CachedRecipe
(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) -
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<AbstractCookingRecipe> recipe) abstract boolean
AbstractRecipeScreenHandler.matches
(RecipeEntry<R> recipe) boolean
CraftingScreenHandler.matches
(RecipeEntry<CraftingRecipe> recipe) boolean
PlayerScreenHandler.matches
(RecipeEntry<CraftingRecipe> recipe) protected void
AbstractRecipeScreenHandler.onInputSlotFillFinish
(RecipeEntry<R> recipe) void
CraftingScreenHandler.onInputSlotFillFinish
(RecipeEntry<CraftingRecipe> recipe) protected static void
CraftingScreenHandler.updateResult
(ScreenHandler handler, World world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, @Nullable RecipeEntry<CraftingRecipe> 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)