Uses of Record Class
net.minecraft.world.item.crafting.RecipeHolder
Packages that use RecipeHolder
Package
Description
-
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.commands.arguments
Methods in net.minecraft.commands.arguments that return RecipeHolderModifier and TypeMethodDescriptionstatic RecipeHolder
<?> ResourceKeyArgument.getRecipe
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_380134_, String p_379840_) -
Uses of RecipeHolder in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionstatic <I extends RecipeInput,
R extends Recipe<I>>
RecipeBookMenu.PostPlaceActionServerPlaceRecipe.placeRecipe
(ServerPlaceRecipe.CraftingMenuAccess<R> p_361341_, int p_361512_, int p_362929_, List<Slot> p_364825_, List<Slot> p_364661_, Inventory p_364618_, RecipeHolder<R> p_363024_, boolean p_360549_, boolean p_361381_) private void
ServerPlaceRecipe.placeRecipe
(RecipeHolder<R> p_364551_, StackedItemContents p_362416_) boolean
ServerPlaceRecipe.CraftingMenuAccess.recipeMatches
(RecipeHolder<T> p_361972_) private RecipeBookMenu.PostPlaceAction
ServerPlaceRecipe.tryPlaceRecipe
(RecipeHolder<R> p_362187_, StackedItemContents p_361415_) -
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
Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
ServerRecipeBook.addRecipes
(Collection<RecipeHolder<?>> p_12792_, ServerPlayer p_12793_) 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 TypeMethodDescriptionvoid
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 RecipeHolderMethods in net.minecraft.world.inventory that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder
<?> RecipeCraftingHolder.getRecipeUsed()
RecipeHolder
<?> ResultContainer.getRecipeUsed()
Methods in net.minecraft.world.inventory with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected void
AbstractCraftingMenu.finishPlacingRecipe
(ServerLevel p_379946_, RecipeHolder<CraftingRecipe> p_360568_) void
CraftingMenu.finishPlacingRecipe
(ServerLevel p_380098_, RecipeHolder<CraftingRecipe> p_345915_) AbstractCraftingMenu.handlePlacement
(boolean p_361638_, boolean p_361841_, RecipeHolder<?> p_364981_, ServerLevel p_379885_, Inventory p_361078_) AbstractFurnaceMenu.handlePlacement
(boolean p_361547_, boolean p_363944_, RecipeHolder<?> p_360938_, ServerLevel p_379475_, Inventory p_361954_) abstract RecipeBookMenu.PostPlaceAction
RecipeBookMenu.handlePlacement
(boolean p_40119_, boolean p_362739_, RecipeHolder<?> p_300860_, ServerLevel p_379372_, Inventory p_363345_) default boolean
RecipeCraftingHolder.setRecipeUsed
(ServerPlayer p_301242_, RecipeHolder<?> p_301296_) void
RecipeCraftingHolder.setRecipeUsed
(RecipeHolder<?> p_300902_) void
ResultContainer.setRecipeUsed
(RecipeHolder<?> p_301012_) protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu p_150547_, ServerLevel p_379963_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_, RecipeHolder<CraftingRecipe> p_345124_) -
Uses of RecipeHolder in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as RecipeHolderModifier and TypeFieldDescriptionprivate final RecipeHolder
<?> RecipeManager.ServerDisplayInfo.parent
The field for theparent
record component.private 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 final Map
<ResourceKey<Recipe<?>>, RecipeHolder<?>> RecipeMap.byKey
private com.google.common.collect.Multimap
<RecipeType<?>, RecipeHolder<?>> RecipeMap.byType
private final Optional
<RecipeHolder<T>> SelectableRecipe.recipe
The field for therecipe
record component.static final StreamCodec
<RegistryFriendlyByteBuf, RecipeHolder<?>> RecipeHolder.STREAM_CODEC
Methods in net.minecraft.world.item.crafting that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder
<?> RecipeMap.byKey
(ResourceKey<Recipe<?>> p_380265_) private <T extends Recipe<?>>
RecipeHolder<T> RecipeManager.byKeyTyped
(RecipeType<T> p_341695_, ResourceKey<Recipe<?>> p_379841_) protected static RecipeHolder
<?> RecipeManager.fromJson
(ResourceKey<Recipe<?>> p_380059_, com.google.gson.JsonObject p_44047_, HolderLookup.Provider p_323755_) RecipeHolder
<?> RecipeManager.ServerDisplayInfo.parent()
Returns the value of theparent
record component.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
(ResourceKey<Recipe<?>> p_379753_) <I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeMap.byType
(RecipeType<T> p_379772_) private Optional
<RecipeHolder<CraftingRecipe>> RecipeCache.compute
(CraftingInput p_345136_, ServerLevel p_379915_) RecipeCache.get
(ServerLevel p_379692_, CraftingInput p_345726_) RecipeManager.CachedCheck.getRecipeFor
(I p_344938_, ServerLevel p_379487_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> p_44016_, I p_345492_, Level p_44018_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> p_345895_, I p_345268_, Level p_346336_, ResourceKey<Recipe<?>> p_380176_) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor
(RecipeType<T> p_220249_, I p_345826_, Level p_220251_, RecipeHolder<T> p_346407_) RecipeManager.getRecipes()
<I extends RecipeInput,
T extends Recipe<I>>
Stream<RecipeHolder<T>> RecipeMap.getRecipesFor
(RecipeType<T> p_380402_, I p_379312_, Level p_379663_) SelectableRecipe.recipe()
Returns the value of therecipe
record component.RecipeMap.values()
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> p_220249_, I p_345826_, Level p_220251_, RecipeHolder<T> p_346407_) private void
RecipeCache.insert
(CraftingInput p_348525_, RecipeHolder<CraftingRecipe> p_336146_) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionstatic RecipeMap
RecipeMap.create
(Iterable<RecipeHolder<?>> p_379481_) private static List
<RecipeManager.ServerDisplayInfo> RecipeManager.unpackRecipeInfo
(Iterable<RecipeHolder<?>> p_379538_, FeatureFlagSet p_379868_) 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.ServerDisplayInfo
(RecipeDisplayEntry display, RecipeHolder<?> parent) Creates an instance of aServerDisplayInfo
record class.Constructor parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifierConstructorDescriptionprivate
RecipeMap
(com.google.common.collect.Multimap<RecipeType<?>, RecipeHolder<?>> p_379497_, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> p_380280_) private
RecipeMap
(com.google.common.collect.Multimap<RecipeType<?>, RecipeHolder<?>> p_379497_, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> p_380280_) SelectableRecipe
(SlotDisplay optionDisplay, Optional<RecipeHolder<T>> recipe) Creates an instance of aSelectableRecipe
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
(ServerLevel p_380126_, CraftingInput p_345096_) Methods in net.minecraft.world.level.block with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate void
CrafterBlock.dispenseItem
(ServerLevel p_335887_, BlockPos p_307620_, CrafterBlockEntity p_307387_, ItemStack p_307296_, BlockState p_307501_, RecipeHolder<?> p_335494_) -
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 TypeMethodDescriptionList
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) Methods in net.minecraft.world.level.block.entity with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<? extends AbstractCookingRecipe> p_300910_, SingleRecipeInput p_380269_, NonNullList<ItemStack> p_267073_, int p_267157_) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<? extends AbstractCookingRecipe> p_301107_, SingleRecipeInput p_380038_, NonNullList<ItemStack> p_155007_, int p_155008_) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> p_301245_) -
Uses of RecipeHolder in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final List
<RecipeHolder<?>> RecipeContentPayload.recipes
The field for therecipes
record component.Methods in net.neoforged.neoforge.network.payload that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList
<RecipeHolder<?>> RecipeContentPayload.recipes()
Returns the value of therecipes
record component.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type RecipeHolderModifierConstructorDescriptionRecipeContentPayload
(Set<RecipeType<?>> recipeTypes, List<RecipeHolder<?>> recipes) Creates an instance of aRecipeContentPayload
record class.