Uses of Record Class
net.minecraft.world.item.crafting.RecipeHolder
Package
Description
-
Uses of RecipeHolder in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
RecipeUnlockedTrigger.TriggerInstance.matches
(RecipeHolder<?> p_299959_) void
RecipeUnlockedTrigger.trigger
(ServerPlayer p_63719_, RecipeHolder<?> p_300165_) -
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_299041_) 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_297895_) static void
RecipeToast.addOrUpdate
(ToastComponent p_94818_, RecipeHolder<?> p_300003_) -
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_301077_) protected void
OverlayRecipeComponent.OverlaySmeltingRecipeButton.calculateIngredientsPositions
(RecipeHolder<?> p_301296_) boolean
RecipeCollection.isCraftable
(RecipeHolder<?> p_301083_) void
GhostRecipe.setRecipe
(RecipeHolder<?> p_299927_) void
AbstractFurnaceRecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> p_297434_, List<Slot> p_100123_) void
RecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> p_299607_, 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_301354_, boolean p_100235_) OverlaySmeltingRecipeButton
(int p_100262_, int p_100263_, RecipeHolder<?> p_299173_, 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_300726_, boolean p_105220_) -
Uses of RecipeHolder in net.minecraft.client.player
Modifier and TypeMethodDescriptionvoid
LocalPlayer.removeRecipeHighlight
(RecipeHolder<?> p_299313_) -
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 TypeMethodDescriptionprivate static RecipeHolder<?>
ClientboundUpdateRecipesPacket.fromNetwork
(FriendlyByteBuf p_133648_) Modifier and TypeMethodDescriptionList<RecipeHolder<?>>
ClientboundUpdateRecipesPacket.getRecipes()
Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidClientboundUpdateRecipesPacket.toNetwork
(FriendlyByteBuf p_179470_, RecipeHolder<?> p_297340_) ModifierConstructorDescriptionClientboundPlaceGhostRecipePacket
(int p_132647_, RecipeHolder<?> p_297839_) ServerboundPlaceRecipePacket
(int p_134240_, RecipeHolder<?> p_300428_, boolean p_134242_) ServerboundRecipeBookSeenRecipePacket
(RecipeHolder<?> p_298515_) ModifierConstructorDescriptionClientboundUpdateRecipesPacket
(Collection<RecipeHolder<?>> p_133632_) -
Uses of RecipeHolder in net.minecraft.recipebook
Modifier and TypeMethodDescriptionprotected void
ServerPlaceRecipe.handleRecipeClicked
(RecipeHolder<? extends Recipe<C>> p_298652_, boolean p_135442_) default void
PlaceRecipe.placeRecipe
(int p_135409_, int p_135410_, int p_135411_, RecipeHolder<?> p_298822_, Iterator<T> p_135413_, int p_135414_) void
ServerPlaceRecipe.recipeClicked
(ServerPlayer p_135435_, RecipeHolder<? extends Recipe<C>> p_298963_, boolean p_135437_) -
Uses of RecipeHolder in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.triggerRecipeCrafted
(RecipeHolder<?> p_299743_, 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_301033_) void
RecipeBook.addHighlight
(RecipeHolder<?> p_300059_) boolean
RecipeBook.contains
(RecipeHolder<?> p_298018_) void
RecipeBook.remove
(RecipeHolder<?> p_301343_) void
RecipeBook.removeHighlight
(RecipeHolder<?> p_298729_) boolean
RecipeBook.willHighlight
(RecipeHolder<?> p_300661_) 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_299486_, int p_36473_, it.unimi.dsi.fastutil.ints.IntList p_36474_) int
StackedContents.getBiggestCraftableStack
(RecipeHolder<?> p_301008_, it.unimi.dsi.fastutil.ints.IntList p_36495_) void
Player.triggerRecipeCrafted
(RecipeHolder<?> p_298309_, 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_297420_, ServerPlayer p_40121_) boolean
AbstractFurnaceMenu.recipeMatches
(RecipeHolder<? extends Recipe<Container>> p_297720_) boolean
CraftingMenu.recipeMatches
(RecipeHolder<? extends Recipe<CraftingContainer>> p_300381_) boolean
InventoryMenu.recipeMatches
(RecipeHolder<? extends Recipe<CraftingContainer>> p_299815_) abstract boolean
RecipeBookMenu.recipeMatches
(RecipeHolder<? extends Recipe<C>> p_297792_) void
RecipeCraftingHolder.setRecipeUsed
(RecipeHolder<?> p_297397_) default boolean
RecipeCraftingHolder.setRecipeUsed
(Level p_298867_, ServerPlayer p_301009_, RecipeHolder<?> p_301264_) void
ResultContainer.setRecipeUsed
(RecipeHolder<?> p_297508_) -
Uses of RecipeHolder in net.minecraft.world.item.crafting
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,
RecipeHolder<?>> RecipeManager.byName
private Map<RecipeType<?>,
Map<ResourceLocation, RecipeHolder<?>>> RecipeManager.recipes
Modifier and TypeMethodDescriptionprotected static RecipeHolder<?>
RecipeManager.fromJson
(ResourceLocation p_44046_, com.google.gson.JsonObject p_44047_) Modifier 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_) <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_) Modifier and TypeMethodDescriptionvoid
RecipeManager.replaceRecipes
(Iterable<RecipeHolder<?>> p_44025_) -
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 boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<?> p_299450_, NonNullList<ItemStack> p_267073_, int p_267157_) private boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<?> p_299207_, NonNullList<ItemStack> p_155007_, int p_155008_) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> p_297739_) -
Uses of RecipeHolder in net.minecraftforge.client
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.