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<?> pRecipe) void
RecipeUnlockedTrigger.trigger
(ServerPlayer pPlayer, RecipeHolder<?> pRecipe) -
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> pMenu, int pGridWidth, int pGridHeight, List<Slot> pInputGridSlots, List<Slot> pSlotsToClear, Inventory pInventory, RecipeHolder<R> pRecipe, boolean pUseMaxItems, boolean pIsCreative) private void
ServerPlaceRecipe.placeRecipe
(RecipeHolder<R> pRecipe, StackedItemContents pStackedItemContents) boolean
ServerPlaceRecipe.CraftingMenuAccess.recipeMatches
(RecipeHolder<T> pRecipe) private RecipeBookMenu.PostPlaceAction
ServerPlaceRecipe.tryPlaceRecipe
(RecipeHolder<R> pRecipe, StackedItemContents pStackedItemContents) -
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
Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionint
ServerRecipeBook.addRecipes
(Collection<RecipeHolder<?>> pRecipes, ServerPlayer pPlayer) 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 TypeMethodDescriptionvoid
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 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 pLevel, RecipeHolder<CraftingRecipe> pRecipe) void
CraftingMenu.finishPlacingRecipe
(ServerLevel pLevel, RecipeHolder<CraftingRecipe> pRecipe) AbstractCraftingMenu.handlePlacement
(boolean pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) AbstractFurnaceMenu.handlePlacement
(boolean pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) abstract RecipeBookMenu.PostPlaceAction
RecipeBookMenu.handlePlacement
(boolean pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) default boolean
RecipeCraftingHolder.setRecipeUsed
(ServerPlayer pPlayer, RecipeHolder<?> pRecipe) void
RecipeCraftingHolder.setRecipeUsed
(RecipeHolder<?> pRecipe) void
ResultContainer.setRecipeUsed
(RecipeHolder<?> pRecipe) protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu pMenu, ServerLevel 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
<?> 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<?>> pKey) private <T extends Recipe<?>>
RecipeHolder<T> RecipeManager.byKeyTyped
(RecipeType<T> pType, ResourceKey<Recipe<?>> pKey) 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<?>> pKey) <I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeMap.byType
(RecipeType<T> pType) private Optional
<RecipeHolder<CraftingRecipe>> RecipeCache.compute
(CraftingInput pCraftingInput, ServerLevel pLevel) RecipeCache.get
(ServerLevel pLevel, CraftingInput pCraftingInput) RecipeManager.CachedCheck.getRecipeFor
(I pInput, ServerLevel 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, ResourceKey<Recipe<?>> pRecipe) <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>>
Stream<RecipeHolder<T>> RecipeMap.getRecipesFor
(RecipeType<T> pType, I pInput, Level pLevel) 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> 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 TypeMethodDescriptionstatic RecipeMap
RecipeMap.create
(Iterable<RecipeHolder<?>> pRecipes) private static List
<RecipeManager.ServerDisplayInfo> RecipeManager.unpackRecipeInfo
(Iterable<RecipeHolder<?>> pRecipes, FeatureFlagSet pEnabledFeatures) 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 pLevel, CraftingInput pCraftingInput) 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<?> 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 TypeMethodDescriptionList
<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<? extends AbstractCookingRecipe> pRecipe, SingleRecipeInput pRecipeInput, NonNullList<ItemStack> pItems, int pMaxStackSize) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess pRegistryAccess, RecipeHolder<? extends AbstractCookingRecipe> pRecipe, SingleRecipeInput pRecipeInput, NonNullList<ItemStack> pItems, int pMaxStackSize) void
AbstractFurnaceBlockEntity.setRecipeUsed
(RecipeHolder<?> pRecipe) -
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.