Uses of Record Class
net.minecraft.world.item.crafting.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
Modifier and TypeMethodDescriptionboolean
RecipeUnlockedTrigger.TriggerInstance.matches
(RecipeHolder<?> p_301295_) void
RecipeUnlockedTrigger.trigger
(ServerPlayer p_63719_, RecipeHolder<?> p_301160_) -
Uses of RecipeHolder in net.minecraft.client
Modifier and TypeMethodDescriptionprivate static Map
<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes
(Iterable<RecipeHolder<?>> p_90643_) Modifier and TypeMethodDescriptionprivate static RecipeBookCategories
ClientRecipeBook.getCategory
(RecipeHolder<?> p_301136_) Modifier and TypeMethodDescriptionprivate static Map
<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes
(Iterable<RecipeHolder<?>> p_90643_) void
ClientRecipeBook.setupCollections
(Iterable<RecipeHolder<?>> p_266814_, RegistryAccess p_266878_) -
Uses of RecipeHolder in net.minecraft.client.gui.components.toasts
Modifier and TypeMethodDescriptionprivate void
RecipeToast.addItem
(RecipeHolder<?> p_301083_) static void
RecipeToast.addOrUpdate
(ToastComponent p_94818_, RecipeHolder<?> p_301027_) -
Uses of RecipeHolder in net.minecraft.client.gui.screens.recipebook
Modifier and TypeFieldDescriptionprivate RecipeHolder
<?> RecipeBookPage.lastClickedRecipe
private RecipeHolder
<?> OverlayRecipeComponent.lastRecipeClicked
private RecipeHolder
<?> GhostRecipe.recipe
(package private) final RecipeHolder
<?> OverlayRecipeComponent.OverlayRecipeButton.recipe
Modifier 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
Modifier and TypeMethodDescriptionRecipeHolder
<?> RecipeBookPage.getLastClickedRecipe()
RecipeHolder
<?> OverlayRecipeComponent.getLastRecipeClicked()
RecipeHolder
<?> GhostRecipe.getRecipe()
RecipeHolder
<?> RecipeButton.getRecipe()
Modifier and TypeMethodDescriptionList
<RecipeHolder<?>> RecipeCollection.getDisplayRecipes
(boolean p_100514_) private List
<RecipeHolder<?>> RecipeButton.getOrderedRecipes()
List
<RecipeHolder<?>> RecipeCollection.getRecipes()
List
<RecipeHolder<?>> RecipeCollection.getRecipes
(boolean p_100511_) Modifier and TypeMethodDescriptionprotected void
OverlayRecipeComponent.OverlayRecipeButton.calculateIngredientsPositions
(RecipeHolder<?> p_301128_) protected void
OverlayRecipeComponent.OverlaySmeltingRecipeButton.calculateIngredientsPositions
(RecipeHolder<?> p_301196_) boolean
RecipeCollection.isCraftable
(RecipeHolder<?> p_301167_) void
GhostRecipe.setRecipe
(RecipeHolder<?> p_300899_) void
AbstractFurnaceRecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> p_301099_, List<Slot> p_100123_) void
RecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> p_301197_, List<Slot> p_100317_) Modifier and TypeMethodDescriptionprivate static boolean
RecipeCollection.allRecipesHaveSameResult
(RegistryAccess p_267210_, List<RecipeHolder<?>> p_100509_) void
RecipeBookComponent.recipesShown
(List<RecipeHolder<?>> p_100344_) void
RecipeBookPage.recipesShown
(List<RecipeHolder<?>> p_100435_) void
RecipeShownListener.recipesShown
(List<RecipeHolder<?>> p_100518_) ModifierConstructorDescriptionOverlayRecipeButton
(int p_100232_, int p_100233_, RecipeHolder<?> p_301240_, boolean p_100235_) OverlaySmeltingRecipeButton
(int p_100262_, int p_100263_, RecipeHolder<?> p_301104_, boolean p_100265_) ModifierConstructorDescriptionRecipeCollection
(RegistryAccess p_266782_, List<RecipeHolder<?>> p_267051_) -
Uses of RecipeHolder in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.handlePlaceRecipe
(int p_105218_, RecipeHolder<?> p_301105_, boolean p_105220_) -
Uses of RecipeHolder in net.minecraft.client.player
Modifier and TypeMethodDescriptionvoid
LocalPlayer.removeRecipeHighlight
(RecipeHolder<?> p_300983_) -
Uses of RecipeHolder in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic RecipeHolder
<?> ResourceLocationArgument.getRecipe
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106995_, String p_106996_) -
Uses of RecipeHolder in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final List
<RecipeHolder<?>> ClientboundUpdateRecipesPacket.recipes
Modifier and TypeMethodDescriptionList
<RecipeHolder<?>> ClientboundUpdateRecipesPacket.getRecipes()
ModifierConstructorDescriptionClientboundPlaceGhostRecipePacket
(int p_132647_, RecipeHolder<?> p_301206_) ServerboundPlaceRecipePacket
(int p_134240_, RecipeHolder<?> p_300889_, boolean p_134242_) ServerboundRecipeBookSeenRecipePacket
(RecipeHolder<?> p_301152_) ModifierConstructorDescriptionClientboundUpdateRecipesPacket
(Collection<RecipeHolder<?>> p_133632_) -
Uses of RecipeHolder in net.minecraft.recipebook
Modifier and TypeMethodDescriptionprotected void
ServerPlaceRecipe.handleRecipeClicked
(RecipeHolder<? extends Recipe<C>> p_301187_, boolean p_135442_) default void
PlaceRecipe.placeRecipe
(int p_135409_, int p_135410_, int p_135411_, RecipeHolder<?> p_301225_, Iterator<T> p_135413_, int p_135414_) void
ServerPlaceRecipe.recipeClicked
(ServerPlayer p_135435_, RecipeHolder<? extends Recipe<C>> p_301150_, boolean p_135437_) -
Uses of RecipeHolder in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.triggerRecipeCrafted
(RecipeHolder<?> p_301156_, List<ItemStack> p_282336_) Modifier and TypeMethodDescriptionint
ServerPlayer.awardRecipes
(Collection<RecipeHolder<?>> p_9129_) int
ServerPlayer.resetRecipes
(Collection<RecipeHolder<?>> p_9195_) -
Uses of RecipeHolder in net.minecraft.stats
Modifier and TypeMethodDescriptionvoid
RecipeBook.add
(RecipeHolder<?> p_300937_) void
RecipeBook.addHighlight
(RecipeHolder<?> p_300907_) boolean
RecipeBook.contains
(RecipeHolder<?> p_300981_) void
RecipeBook.remove
(RecipeHolder<?> p_301170_) void
RecipeBook.removeHighlight
(RecipeHolder<?> p_300963_) boolean
RecipeBook.willHighlight
(RecipeHolder<?> p_300856_) Modifier and TypeMethodDescriptionint
ServerRecipeBook.addRecipes
(Collection<RecipeHolder<?>> p_12792_, ServerPlayer p_12793_) private void
ServerRecipeBook.loadRecipes
(ListTag p_12798_, Consumer<RecipeHolder<?>> p_12799_, RecipeManager p_12800_) int
ServerRecipeBook.removeRecipes
(Collection<RecipeHolder<?>> p_12807_, ServerPlayer p_12808_) -
Uses of RecipeHolder in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionint
StackedContents.getBiggestCraftableStack
(RecipeHolder<?> p_300888_, int p_300980_, it.unimi.dsi.fastutil.ints.IntList p_36495_) int
StackedContents.getBiggestCraftableStack
(RecipeHolder<?> p_301005_, it.unimi.dsi.fastutil.ints.IntList p_36474_) void
Player.triggerRecipeCrafted
(RecipeHolder<?> p_301080_, List<ItemStack> p_283609_) Modifier and TypeMethodDescriptionint
Player.awardRecipes
(Collection<RecipeHolder<?>> p_36213_) int
Player.resetRecipes
(Collection<RecipeHolder<?>> p_36263_) -
Uses of RecipeHolder in net.minecraft.world.inventory
Modifier and TypeFieldDescriptionprivate RecipeHolder
<?> ResultContainer.recipeUsed
private RecipeHolder
<SmithingRecipe> SmithingMenu.selectedRecipe
Modifier and TypeFieldDescriptionprivate final List
<RecipeHolder<SmithingRecipe>> SmithingMenu.recipes
private List
<RecipeHolder<StonecutterRecipe>> StonecutterMenu.recipes
Modifier and TypeMethodDescriptionRecipeHolder
<?> RecipeCraftingHolder.getRecipeUsed()
RecipeHolder
<?> ResultContainer.getRecipeUsed()
Modifier and TypeMethodDescriptionvoid
RecipeBookMenu.handlePlacement
(boolean p_40119_, RecipeHolder<?> p_300860_, ServerPlayer p_40121_) boolean
AbstractFurnaceMenu.recipeMatches
(RecipeHolder<? extends Recipe<Container>> p_300882_) boolean
CraftingMenu.recipeMatches
(RecipeHolder<? extends Recipe<CraftingContainer>> p_300858_) boolean
InventoryMenu.recipeMatches
(RecipeHolder<? extends Recipe<CraftingContainer>> p_300901_) abstract boolean
RecipeBookMenu.recipeMatches
(RecipeHolder<? extends Recipe<C>> p_301144_) void
RecipeCraftingHolder.setRecipeUsed
(RecipeHolder<?> p_300902_) default boolean
RecipeCraftingHolder.setRecipeUsed
(Level p_300930_, ServerPlayer p_301242_, RecipeHolder<?> p_301296_) void
ResultContainer.setRecipeUsed
(RecipeHolder<?> p_301012_) -
Uses of RecipeHolder in net.minecraft.world.item.crafting
Modifier and TypeFieldDescriptionprivate final RecipeHolder
<CraftingRecipe> RecipeCache.Entry.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionprivate Map
<ResourceLocation, RecipeHolder<?>> RecipeManager.byName
private com.google.common.collect.Multimap
<RecipeType<?>, RecipeHolder<?>> RecipeManager.byType
static final StreamCodec
<RegistryFriendlyByteBuf, RecipeHolder<?>> RecipeHolder.STREAM_CODEC
Modifier and TypeMethodDescriptionprivate <T extends Recipe<?>>
RecipeHolder<T> RecipeManager.byKeyTyped
(RecipeType<T> p_341695_, ResourceLocation p_341666_) protected static RecipeHolder
<?> RecipeManager.fromJson
(ResourceLocation p_44046_, com.google.gson.JsonObject p_44047_, HolderLookup.Provider p_323755_) RecipeCache.Entry.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionOptional
<RecipeHolder<?>> RecipeManager.byKey
(ResourceLocation p_44044_) private <C extends Container,
T extends Recipe<C>>
Collection<RecipeHolder<T>> RecipeManager.byType
(RecipeType<T> p_44055_) private Optional
<RecipeHolder<CraftingRecipe>> RecipeCache.compute
(CraftingContainer p_307329_, Level p_307202_) RecipeCache.get
(Level p_307315_, CraftingContainer p_307684_) <C extends Container,
T extends Recipe<C>>
List<RecipeHolder<T>> RecipeManager.getAllRecipesFor
(RecipeType<T> p_44014_) RecipeManager.getOrderedRecipes()
RecipeManager.CachedCheck.getRecipeFor
(C p_220280_, Level p_220281_) <C extends Container,
T extends Recipe<C>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> p_44016_, C p_44017_, Level p_44018_) <C extends Container,
T extends Recipe<C>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> p_220249_, C p_220250_, Level p_220251_, ResourceLocation p_220252_) RecipeManager.getRecipes()
<C extends Container,
T extends Recipe<C>>
List<RecipeHolder<T>> RecipeManager.getRecipesFor
(RecipeType<T> p_44057_, C p_44058_, Level p_44059_) Modifier and TypeMethodDescriptionprivate void
RecipeCache.insert
(List<ItemStack> p_307307_, RecipeHolder<CraftingRecipe> p_336146_) Modifier and TypeMethodDescriptionvoid
RecipeManager.replaceRecipes
(Iterable<RecipeHolder<?>> p_44025_) ModifierConstructorDescription(package private)
Entry
(NonNullList<ItemStack> key, RecipeHolder<CraftingRecipe> value) Creates an instance of aEntry
record class. -
Uses of RecipeHolder in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionstatic Optional
<RecipeHolder<CraftingRecipe>> CrafterBlock.getPotentialResults
(Level p_307625_, CraftingContainer p_307549_) Modifier and TypeMethodDescriptionprivate void
CrafterBlock.dispenseItem
(ServerLevel p_335887_, BlockPos p_307620_, CrafterBlockEntity p_307387_, ItemStack p_307296_, BlockState p_307501_, RecipeHolder<CraftingRecipe> p_335494_) -
Uses of RecipeHolder in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionCampfireBlockEntity.getCookableRecipe
(ItemStack p_59052_) List
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<?> p_300910_, NonNullList<ItemStack> p_267073_, int p_267157_, AbstractFurnaceBlockEntity furnace) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<?> p_301107_, NonNullList<ItemStack> p_155007_, int p_155008_, AbstractFurnaceBlockEntity furnace) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> p_301245_) -
Uses of RecipeHolder in net.neoforged.neoforge.client
Modifier and TypeFieldDescriptionprivate static final Map
<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RecipeBookManager.RECIPE_CATEGORY_LOOKUPS
Modifier 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
Modifier and TypeFieldDescriptionprivate final Map
<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RegisterRecipeBookCategoriesEvent.recipeCategoryLookups
Modifier and TypeMethodDescriptionvoid
RegisterRecipeBookCategoriesEvent.registerRecipeCategoryFinder
(RecipeType<?> type, Function<RecipeHolder<?>, RecipeBookCategories> lookup) Registers a category lookup for a certain recipe type. -
Uses of RecipeHolder in net.neoforged.neoforge.oldtest.recipebook
Modifier and TypeMethodDescriptionboolean
RecipeBookTestMenu.recipeMatches
(RecipeHolder<? extends Recipe<RecipeBookExtensionTest.RecipeBookTestContainer>> recipeHolder)