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 TypeMethodDescriptionbooleanRecipeUnlockedTrigger.TriggerInstance.matches(RecipeHolder<?> pRecipe) voidRecipeUnlockedTrigger.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> pContext, String pArgument) -
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 voidServerPlaceRecipe.placeRecipe(RecipeHolder<R> pRecipe, StackedItemContents pStackedItemContents) booleanServerPlaceRecipe.CraftingMenuAccess.recipeMatches(RecipeHolder<T> pRecipe) private RecipeBookMenu.PostPlaceActionServerPlaceRecipe.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 TypeMethodDescriptionvoidServerPlayer.triggerRecipeCrafted(RecipeHolder<?> p_301156_, List<ItemStack> p_282336_) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerPlayer.awardRecipes(Collection<RecipeHolder<?>> p_9129_) intServerPlayer.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 TypeMethodDescriptionintServerRecipeBook.addRecipes(Collection<RecipeHolder<?>> pRecipes, ServerPlayer pPlayer) intServerRecipeBook.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 TypeMethodDescriptionvoidPlayer.triggerRecipeCrafted(RecipeHolder<?> pRecipe, List<ItemStack> pItems) Method parameters in net.minecraft.world.entity.player with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintPlayer.awardRecipes(Collection<RecipeHolder<?>> pRecipes) intPlayer.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 voidAbstractCraftingMenu.finishPlacingRecipe(ServerLevel pLevel, RecipeHolder<CraftingRecipe> pRecipe) voidCraftingMenu.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.PostPlaceActionRecipeBookMenu.handlePlacement(boolean pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) default booleanRecipeCraftingHolder.setRecipeUsed(ServerPlayer pPlayer, RecipeHolder<?> pRecipe) voidRecipeCraftingHolder.setRecipeUsed(RecipeHolder<?> pRecipe) voidResultContainer.setRecipeUsed(RecipeHolder<?> p_301012_) protected static voidCraftingMenu.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.parentThe field for theparentrecord component.private final RecipeHolder<CraftingRecipe> RecipeCache.Entry.valueThe field for thevaluerecord component.Fields in net.minecraft.world.item.crafting with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> RecipeMap.byKeyprivate Multimap<RecipeType<?>, RecipeHolder<?>> RecipeMap.byTypeprivate final Optional<RecipeHolder<T>> SelectableRecipe.recipeThe field for thereciperecord component.static final StreamCodec<RegistryFriendlyByteBuf, RecipeHolder<?>> RecipeHolder.STREAM_CODECMethods 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<?>> pRecipe, JsonObject pJson, HolderLookup.Provider pRegistries) RecipeHolder<?> RecipeManager.ServerDisplayInfo.parent()Returns the value of theparentrecord component.RecipeCache.Entry.value()Returns the value of thevaluerecord 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 thereciperecord 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 voidRecipeCache.insert(CraftingInput pInput, RecipeHolder<CraftingRecipe> pRecipe) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionstatic RecipeMapRecipeMap.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 aEntryrecord class.ServerDisplayInfo(RecipeDisplayEntry display, RecipeHolder<?> parent) Creates an instance of aServerDisplayInforecord class.Constructor parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifierConstructorDescriptionprivateRecipeMap(Multimap<RecipeType<?>, RecipeHolder<?>> pByType, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> pByKey) privateRecipeMap(Multimap<RecipeType<?>, RecipeHolder<?>> pByType, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> pByKey) SelectableRecipe(SlotDisplay optionDisplay, Optional<RecipeHolder<T>> recipe) Creates an instance of aSelectableReciperecord 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 voidCrafterBlock.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 booleanAbstractFurnaceBlockEntity.burn(RegistryAccess pRegistryAccess, RecipeHolder<? extends AbstractCookingRecipe> pRecipe, SingleRecipeInput pRecipeInput, NonNullList<ItemStack> pItems, int pMaxStackSize) private static booleanAbstractFurnaceBlockEntity.canBurn(RegistryAccess pRegistryAccess, RecipeHolder<? extends AbstractCookingRecipe> pRecipe, SingleRecipeInput pRecipeInput, NonNullList<ItemStack> pItems, int pMaxStackSize) voidAbstractFurnaceBlockEntity.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.recipesThe field for therecipesrecord 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 therecipesrecord 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 aRecipeContentPayloadrecord class.