Uses of Record Class
net.minecraft.world.item.crafting.RecipeHolder
Packages that use RecipeHolder
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of RecipeHolder in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type RecipeHolderModifier and TypeMethodDescriptionboolean
RecipeUnlockedTrigger.TriggerInstance.matches
(RecipeHolder<?> pRecipe) void
RecipeUnlockedTrigger.trigger
(ServerPlayer pPlayer, RecipeHolder<?> pRecipe) -
Uses of RecipeHolder in net.minecraft.client
Methods in net.minecraft.client that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static Map
<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes
(Iterable<RecipeHolder<?>> pRecipes) Methods in net.minecraft.client with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static RecipeBookCategories
ClientRecipeBook.getCategory
(RecipeHolder<?> pRecipe) Method parameters in net.minecraft.client with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static Map
<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes
(Iterable<RecipeHolder<?>> pRecipes) void
ClientRecipeBook.setupCollections
(Iterable<RecipeHolder<?>> pRecipes, RegistryAccess pRegistryAccess) -
Uses of RecipeHolder in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts with type parameters of type RecipeHolderMethods in net.minecraft.client.gui.components.toasts with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate void
RecipeToast.addItem
(RecipeHolder<?> pRecipe) static void
RecipeToast.addOrUpdate
(ToastComponent pToastComponent, RecipeHolder<?> pRecipe) Constructors in net.minecraft.client.gui.components.toasts with parameters of type RecipeHolder -
Uses of RecipeHolder in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook declared as RecipeHolderModifier and TypeFieldDescriptionprivate RecipeHolder
<?> RecipeBookPage.lastClickedRecipe
private RecipeHolder
<?> OverlayRecipeComponent.lastRecipeClicked
private RecipeHolder
<?> GhostRecipe.recipe
(package private) final RecipeHolder
<?> OverlayRecipeComponent.OverlayRecipeButton.recipe
Fields in net.minecraft.client.gui.screens.recipebook with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final Set
<RecipeHolder<?>> RecipeCollection.craftable
private final Set
<RecipeHolder<?>> RecipeCollection.fitsDimensions
private final Set
<RecipeHolder<?>> RecipeCollection.known
private final List
<RecipeHolder<?>> RecipeCollection.recipes
Methods in net.minecraft.client.gui.screens.recipebook that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder
<?> RecipeBookPage.getLastClickedRecipe()
RecipeHolder
<?> OverlayRecipeComponent.getLastRecipeClicked()
RecipeHolder
<?> GhostRecipe.getRecipe()
RecipeHolder
<?> RecipeButton.getRecipe()
Methods in net.minecraft.client.gui.screens.recipebook that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList
<RecipeHolder<?>> RecipeCollection.getDisplayRecipes
(boolean pCraftable) private List
<RecipeHolder<?>> RecipeButton.getOrderedRecipes()
List
<RecipeHolder<?>> RecipeCollection.getRecipes()
List
<RecipeHolder<?>> RecipeCollection.getRecipes
(boolean pOnlyCraftable) Methods in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected void
OverlayRecipeComponent.OverlayRecipeButton.calculateIngredientsPositions
(RecipeHolder<?> pRecipe) protected void
OverlayRecipeComponent.OverlaySmeltingRecipeButton.calculateIngredientsPositions
(RecipeHolder<?> p_301196_) boolean
RecipeCollection.isCraftable
(RecipeHolder<?> pRecipe) void
GhostRecipe.setRecipe
(RecipeHolder<?> pRecipe) void
AbstractFurnaceRecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> pRecipe, List<Slot> pSlots) void
RecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> pRecipe, List<Slot> pSlots) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static boolean
RecipeCollection.allRecipesHaveSameResult
(RegistryAccess pRegistryAccess, List<RecipeHolder<?>> pRecipes) void
RecipeBookComponent.recipesShown
(List<RecipeHolder<?>> pRecipes) void
RecipeBookPage.recipesShown
(List<RecipeHolder<?>> pRecipes) void
RecipeShownListener.recipesShown
(List<RecipeHolder<?>> pRecipes) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifierConstructorDescriptionOverlayRecipeButton
(int pX, int pY, RecipeHolder<?> pRecipe, boolean pIsCraftable) OverlaySmeltingRecipeButton
(int p_100262_, int p_100263_, RecipeHolder<?> p_301104_, boolean p_100265_) Constructor parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifierConstructorDescriptionRecipeCollection
(RegistryAccess pRegistryAccess, List<RecipeHolder<?>> pRecipes) -
Uses of RecipeHolder in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.handlePlaceRecipe
(int pContainerId, RecipeHolder<?> pRecipe, boolean pShiftDown) -
Uses of RecipeHolder in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
LocalPlayer.removeRecipeHighlight
(RecipeHolder<?> pRecipe) -
Uses of RecipeHolder in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return RecipeHolderModifier and TypeMethodDescriptionstatic RecipeHolder
<?> ResourceLocationArgument.getRecipe
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
Uses of RecipeHolder in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final List
<RecipeHolder<?>> ClientboundUpdateRecipesPacket.recipes
Methods in net.minecraft.network.protocol.game that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList
<RecipeHolder<?>> ClientboundUpdateRecipesPacket.getRecipes()
Constructors in net.minecraft.network.protocol.game with parameters of type RecipeHolderModifierConstructorDescriptionClientboundPlaceGhostRecipePacket
(int pContainerId, RecipeHolder<?> pRecipe) ServerboundPlaceRecipePacket
(int pContainerId, RecipeHolder<?> pRecipe, boolean pShiftDown) ServerboundRecipeBookSeenRecipePacket
(RecipeHolder<?> pRecipe) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type RecipeHolderModifierConstructorDescriptionClientboundUpdateRecipesPacket
(Collection<RecipeHolder<?>> p_133632_) -
Uses of RecipeHolder in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected void
ServerPlaceRecipe.handleRecipeClicked
(RecipeHolder<R> pRecipe, boolean pPlaceAll) default void
PlaceRecipe.placeRecipe
(int pWidth, int pHeight, int pOutputSlot, RecipeHolder<?> pRecipe, Iterator<T> pIngredients, int pMaxAmount) void
ServerPlaceRecipe.recipeClicked
(ServerPlayer pPlayer, RecipeHolder<R> pRecipe, boolean pPlaceAll) -
Uses of RecipeHolder in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
ServerPlayer.triggerRecipeCrafted
(RecipeHolder<?> pRecipe, List<ItemStack> pItems) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
ServerPlayer.awardRecipes
(Collection<RecipeHolder<?>> pRecipes) int
ServerPlayer.resetRecipes
(Collection<RecipeHolder<?>> pRecipes) -
Uses of RecipeHolder in net.minecraft.stats
Methods in net.minecraft.stats with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
RecipeBook.add
(RecipeHolder<?> pRecipe) void
RecipeBook.addHighlight
(RecipeHolder<?> pRecipe) boolean
RecipeBook.contains
(RecipeHolder<?> pRecipe) void
RecipeBook.remove
(RecipeHolder<?> pRecipe) void
RecipeBook.removeHighlight
(RecipeHolder<?> pRecipe) boolean
RecipeBook.willHighlight
(RecipeHolder<?> pRecipe) Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
ServerRecipeBook.addRecipes
(Collection<RecipeHolder<?>> pRecipes, ServerPlayer pPlayer) private void
ServerRecipeBook.loadRecipes
(ListTag pTags, Consumer<RecipeHolder<?>> pRecipeConsumer, RecipeManager pRecipeManager) int
ServerRecipeBook.removeRecipes
(Collection<RecipeHolder<?>> pRecipes, ServerPlayer pPlayer) -
Uses of RecipeHolder in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type RecipeHolderModifier and TypeMethodDescriptionint
StackedContents.getBiggestCraftableStack
(RecipeHolder<?> pRecipe, int pAmount, it.unimi.dsi.fastutil.ints.IntList pStackingIndexList) int
StackedContents.getBiggestCraftableStack
(RecipeHolder<?> pRecipe, it.unimi.dsi.fastutil.ints.IntList pStackingIndexList) void
Player.triggerRecipeCrafted
(RecipeHolder<?> pRecipe, List<ItemStack> pItems) Method parameters in net.minecraft.world.entity.player with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
Player.awardRecipes
(Collection<RecipeHolder<?>> pRecipes) int
Player.resetRecipes
(Collection<RecipeHolder<?>> pRecipes) -
Uses of RecipeHolder in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as RecipeHolderModifier and TypeFieldDescriptionprivate RecipeHolder
<?> ResultContainer.recipeUsed
private RecipeHolder
<SmithingRecipe> SmithingMenu.selectedRecipe
Fields in net.minecraft.world.inventory with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final List
<RecipeHolder<SmithingRecipe>> SmithingMenu.recipes
private List
<RecipeHolder<StonecutterRecipe>> StonecutterMenu.recipes
Methods in net.minecraft.world.inventory that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder
<?> RecipeCraftingHolder.getRecipeUsed()
RecipeHolder
<?> ResultContainer.getRecipeUsed()
Methods in net.minecraft.world.inventory that return types with arguments of type RecipeHolderMethods in net.minecraft.world.inventory with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
CraftingMenu.finishPlacingRecipe
(RecipeHolder<CraftingRecipe> pRecipe) protected void
RecipeBookMenu.finishPlacingRecipe
(RecipeHolder<R> pRecipe) void
RecipeBookMenu.handlePlacement
(boolean pPlaceAll, RecipeHolder<?> pRecipe, ServerPlayer pPlayer) boolean
AbstractFurnaceMenu.recipeMatches
(RecipeHolder<AbstractCookingRecipe> pRecipe) boolean
CraftingMenu.recipeMatches
(RecipeHolder<CraftingRecipe> pRecipe) boolean
InventoryMenu.recipeMatches
(RecipeHolder<CraftingRecipe> pRecipe) abstract boolean
RecipeBookMenu.recipeMatches
(RecipeHolder<R> pRecipe) void
RecipeCraftingHolder.setRecipeUsed
(RecipeHolder<?> pRecipe) default boolean
RecipeCraftingHolder.setRecipeUsed
(Level pLevel, ServerPlayer pPlayers, RecipeHolder<?> pRecipe) void
ResultContainer.setRecipeUsed
(RecipeHolder<?> pRecipe) protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu pMenu, Level pLevel, Player pPlayer, CraftingContainer pCraftSlots, ResultContainer pResultSlots, RecipeHolder<CraftingRecipe> pRecipe) -
Uses of RecipeHolder in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as RecipeHolderModifier and TypeFieldDescriptionprivate final RecipeHolder
<CraftingRecipe> RecipeCache.Entry.value
The field for thevalue
record component.Fields in net.minecraft.world.item.crafting with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate Map
<ResourceLocation, RecipeHolder<?>> RecipeManager.byName
private Multimap
<RecipeType<?>, RecipeHolder<?>> RecipeManager.byType
static final StreamCodec
<RegistryFriendlyByteBuf, RecipeHolder<?>> RecipeHolder.STREAM_CODEC
Methods in net.minecraft.world.item.crafting that return RecipeHolderModifier and TypeMethodDescriptionprivate <T extends Recipe<?>>
RecipeHolder<T> RecipeManager.byKeyTyped
(RecipeType<T> pType, ResourceLocation pName) protected static RecipeHolder
<?> RecipeManager.fromJson
(ResourceLocation pRecipeId, JsonObject pJson, HolderLookup.Provider pRegistries) RecipeCache.Entry.value()
Returns the value of thevalue
record component.Methods in net.minecraft.world.item.crafting that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionOptional
<RecipeHolder<?>> RecipeManager.byKey
(ResourceLocation pRecipeId) private <I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeManager.byType
(RecipeType<T> pType) private Optional
<RecipeHolder<CraftingRecipe>> RecipeCache.compute
(CraftingInput pInput, Level pLevel) RecipeCache.get
(Level pLevel, CraftingInput pInput) <I extends RecipeInput,
T extends Recipe<I>>
List<RecipeHolder<T>> RecipeManager.getAllRecipesFor
(RecipeType<T> pRecipeType) RecipeManager.getOrderedRecipes()
RecipeManager.CachedCheck.getRecipeFor
(I pInput, Level pLevel) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> pRecipeType, I pInput, Level pLevel) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> pRecipeType, I pInput, Level pLevel, ResourceLocation pLastRecipe) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> pRecipeType, I pInput, Level pLevel, RecipeHolder<T> pLastRecipe) RecipeManager.getRecipes()
<I extends RecipeInput,
T extends Recipe<I>>
List<RecipeHolder<T>> RecipeManager.getRecipesFor
(RecipeType<T> pRecipeType, I pInput, Level pLevel) Methods in net.minecraft.world.item.crafting with parameters of type RecipeHolderModifier and TypeMethodDescription<I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> pRecipeType, I pInput, Level pLevel, RecipeHolder<T> pLastRecipe) private void
RecipeCache.insert
(CraftingInput pInput, RecipeHolder<CraftingRecipe> pRecipe) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionvoid
RecipeManager.replaceRecipes
(Iterable<RecipeHolder<?>> pRecipes) Constructors in net.minecraft.world.item.crafting with parameters of type RecipeHolderModifierConstructorDescription(package private)
Entry
(NonNullList<ItemStack> key, int width, int height, RecipeHolder<CraftingRecipe> value) Creates an instance of aEntry
record class. -
Uses of RecipeHolder in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionstatic Optional
<RecipeHolder<CraftingRecipe>> CrafterBlock.getPotentialResults
(Level pLevel, CraftingInput pInput) Methods in net.minecraft.world.level.block with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate void
CrafterBlock.dispenseItem
(ServerLevel pLevel, BlockPos pPos, CrafterBlockEntity pCrafter, ItemStack pStack, BlockState pState, RecipeHolder<CraftingRecipe> pRecipe) -
Uses of RecipeHolder in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return RecipeHolderMethods in net.minecraft.world.level.block.entity that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionCampfireBlockEntity.getCookableRecipe
(ItemStack pStack) List
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel pLevel, Vec3 pPopVec) Methods in net.minecraft.world.level.block.entity with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess pRegistryAccess, RecipeHolder<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess pRegistryAccess, RecipeHolder<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> pRecipe) -
Uses of RecipeHolder in net.neoforged.neoforge.client
Fields in net.neoforged.neoforge.client with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate static final Map
<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RecipeBookManager.RECIPE_CATEGORY_LOOKUPS
Methods in net.neoforged.neoforge.client with parameters of type RecipeHolderModifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
@Nullable RecipeBookCategoriesRecipeBookManager.findCategories
(RecipeType<T> type, RecipeHolder<T> recipe) Finds the category the specified recipe should display in, or null if none. -
Uses of RecipeHolder in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final Map
<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RegisterRecipeBookCategoriesEvent.recipeCategoryLookups
Method parameters in net.neoforged.neoforge.client.event with type arguments of type RecipeHolderModifier and TypeMethodDescriptionvoid
RegisterRecipeBookCategoriesEvent.registerRecipeCategoryFinder
(RecipeType<?> type, Function<RecipeHolder<?>, RecipeBookCategories> lookup) Registers a category lookup for a certain recipe type.