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<?> p_301295_) void
RecipeUnlockedTrigger.trigger
(ServerPlayer p_63719_, RecipeHolder<?> p_301160_) -
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<?>> p_90643_) Methods in net.minecraft.client with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static RecipeBookCategories
ClientRecipeBook.getCategory
(RecipeHolder<?> p_301136_) Method parameters in net.minecraft.client with type arguments of type RecipeHolderModifier 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
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<?> p_301083_) static void
RecipeToast.addOrUpdate
(ToastComponent p_94818_, RecipeHolder<?> p_301027_) 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 p_100514_) private List<RecipeHolder<?>>
RecipeButton.getOrderedRecipes()
List<RecipeHolder<?>>
RecipeCollection.getRecipes()
List<RecipeHolder<?>>
RecipeCollection.getRecipes
(boolean p_100511_) Methods in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifier 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_) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifier 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_) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifierConstructorDescriptionOverlayRecipeButton
(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_) Constructor parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifierConstructorDescriptionRecipeCollection
(RegistryAccess p_266782_, List<RecipeHolder<?>> p_267051_) -
Uses of RecipeHolder in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.handlePlaceRecipe
(int p_105218_, RecipeHolder<?> p_301105_, boolean p_105220_) -
Uses of RecipeHolder in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
LocalPlayer.removeRecipeHighlight
(RecipeHolder<?> p_300983_) -
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> p_106995_, String p_106996_) -
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 RecipeHolderModifier and TypeMethodDescriptionprivate static RecipeHolder<?>
ClientboundUpdateRecipesPacket.fromNetwork
(FriendlyByteBuf p_133648_) Methods in net.minecraft.network.protocol.game that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList<RecipeHolder<?>>
ClientboundUpdateRecipesPacket.getRecipes()
Methods in net.minecraft.network.protocol.game with parameters of type RecipeHolderModifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidClientboundUpdateRecipesPacket.toNetwork
(FriendlyByteBuf p_179470_, RecipeHolder<?> p_301050_) Constructors in net.minecraft.network.protocol.game with parameters of type RecipeHolderModifierConstructorDescriptionClientboundPlaceGhostRecipePacket
(int p_132647_, RecipeHolder<?> p_301206_) ServerboundPlaceRecipePacket
(int p_134240_, RecipeHolder<?> p_300889_, boolean p_134242_) ServerboundRecipeBookSeenRecipePacket
(RecipeHolder<?> p_301152_) 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<? 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
Methods in net.minecraft.server.level with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoid
ServerPlayer.triggerRecipeCrafted
(RecipeHolder<?> p_301156_, List<ItemStack> p_282336_) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
ServerPlayer.awardRecipes
(Collection<RecipeHolder<?>> p_9129_) int
ServerPlayer.resetRecipes
(Collection<RecipeHolder<?>> p_9195_) -
Uses of RecipeHolder in net.minecraft.stats
Methods in net.minecraft.stats with parameters of type RecipeHolderModifier 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_) Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier 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
Methods in net.minecraft.world.entity.player with parameters of type RecipeHolderModifier 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_) Method parameters in net.minecraft.world.entity.player with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
Player.awardRecipes
(Collection<RecipeHolder<?>> p_36213_) int
Player.resetRecipes
(Collection<RecipeHolder<?>> p_36263_) -
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
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
Fields in net.minecraft.world.item.crafting with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate Map<ResourceLocation,
RecipeHolder<?>> RecipeManager.byName
private Map<RecipeType<?>,
Map<ResourceLocation, RecipeHolder<?>>> RecipeManager.recipes
Methods in net.minecraft.world.item.crafting that return RecipeHolderModifier and TypeMethodDescriptionprotected static RecipeHolder<?>
RecipeManager.fromJson
(ResourceLocation p_44046_, com.google.gson.JsonObject p_44047_) Deprecated.Forge: use overload with context.Methods in net.minecraft.world.item.crafting that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionOptional<RecipeHolder<?>>
RecipeManager.byKey
(ResourceLocation p_44044_) private <C extends Container,
T extends Recipe<C>>
Map<ResourceLocation,RecipeHolder<T>> RecipeManager.byType
(RecipeType<T> p_44055_) static Optional<RecipeHolder<?>>
RecipeManager.fromJson
(ResourceLocation p_44046_, com.google.gson.JsonObject p_44047_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonElementOps) <C extends Container,
T extends Recipe<C>>
List<RecipeHolder<T>>RecipeManager.getAllRecipesFor
(RecipeType<T> p_44014_) 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<com.mojang.datafixers.util.Pair<ResourceLocation,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_) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionvoid
RecipeManager.replaceRecipes
(Iterable<RecipeHolder<?>> p_44025_) -
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 p_59052_) List<RecipeHolder<?>>
AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) Methods in net.minecraft.world.level.block.entity with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<?> p_300910_, NonNullList<ItemStack> p_267073_, int p_267157_) private boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<?> p_301107_, NonNullList<ItemStack> p_155007_, int p_155008_) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> p_301245_) -
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. -
Uses of RecipeHolder in net.neoforged.neoforge.oldtest.recipebook
Methods in net.neoforged.neoforge.oldtest.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionboolean
RecipeBookTestMenu.recipeMatches
(RecipeHolder<? extends Recipe<RecipeBookExtensionTest.RecipeBookTestContainer>> recipeHolder)