Uses of Record Class
net.minecraft.world.item.crafting.RecipeHolder
Packages that use RecipeHolder
Package
Description
-
Uses of RecipeHolder in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type RecipeHolderModifier and TypeMethodDescriptionbooleanRecipeUnlockedTrigger.TriggerInstance.matches(RecipeHolder<?> recipe) voidRecipeUnlockedTrigger.trigger(ServerPlayer player, RecipeHolder<?> recipe) -
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> context, String name) -
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> menu, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear, Inventory inventory, RecipeHolder<R> recipe, boolean useMaxItems, boolean allowDroppingItemsToClear) private voidServerPlaceRecipe.placeRecipe(RecipeHolder<R> recipe, StackedItemContents availableItems) booleanServerPlaceRecipe.CraftingMenuAccess.recipeMatches(RecipeHolder<T> recipe) private RecipeBookMenu.PostPlaceActionServerPlaceRecipe.tryPlaceRecipe(RecipeHolder<R> recipe, StackedItemContents availableItems) -
Uses of RecipeHolder in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidServerPlayer.triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerPlayer.awardRecipes(Collection<RecipeHolder<?>> recipes) intServerPlayer.resetRecipes(Collection<RecipeHolder<?>> recipe) -
Uses of RecipeHolder in net.minecraft.stats
Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerRecipeBook.addRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player) intServerRecipeBook.removeRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player) -
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<?> recipe, List<ItemStack> itemStacks) Method parameters in net.minecraft.world.entity.player with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintPlayer.awardRecipes(Collection<RecipeHolder<?>> recipes) intPlayer.resetRecipes(Collection<RecipeHolder<?>> recipe) -
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 TypeMethodDescription@Nullable RecipeHolder<?> RecipeCraftingHolder.getRecipeUsed()@Nullable RecipeHolder<?> ResultContainer.getRecipeUsed()Methods in net.minecraft.world.inventory with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected voidAbstractCraftingMenu.finishPlacingRecipe(ServerLevel level, RecipeHolder<CraftingRecipe> recipe) voidCraftingMenu.finishPlacingRecipe(ServerLevel level, RecipeHolder<CraftingRecipe> recipe) AbstractCraftingMenu.handlePlacement(boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory) AbstractFurnaceMenu.handlePlacement(boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory) abstract RecipeBookMenu.PostPlaceActionRecipeBookMenu.handlePlacement(boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory) default booleanRecipeCraftingHolder.setRecipeUsed(ServerPlayer player, RecipeHolder<?> recipe) voidRecipeCraftingHolder.setRecipeUsed(@Nullable RecipeHolder<?> recipeUsed) voidResultContainer.setRecipeUsed(@Nullable RecipeHolder<?> recipeUsed) protected static voidCraftingMenu.slotChangedCraftingGrid(AbstractContainerMenu menu, ServerLevel level, Player player, CraftingContainer container, ResultContainer resultSlots, @Nullable RecipeHolder<CraftingRecipe> recipeHint) -
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 @Nullable 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 TypeMethodDescription@Nullable RecipeHolder<?> RecipeMap.byKey(ResourceKey<Recipe<?>> recipeId) private <T extends Recipe<?>>
@Nullable RecipeHolder<T> RecipeManager.byKeyTyped(RecipeType<T> type, ResourceKey<Recipe<?>> recipeId) protected static RecipeHolder<?> RecipeManager.fromJson(ResourceKey<Recipe<?>> id, JsonObject object, HolderLookup.Provider registries) RecipeHolder<?> RecipeManager.ServerDisplayInfo.parent()Returns the value of theparentrecord component.@Nullable RecipeHolder<CraftingRecipe> 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<?>> recipeId) <I extends RecipeInput, T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeMap.byType(RecipeType<T> type) private Optional<RecipeHolder<CraftingRecipe>> RecipeCache.compute(CraftingInput input, ServerLevel level) RecipeCache.get(ServerLevel level, CraftingInput input) RecipeManager.CachedCheck.getRecipeFor(I input, ServerLevel level) <I extends RecipeInput, T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> type, I input, Level level) <I extends RecipeInput, T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> type, I input, Level level, @Nullable ResourceKey<Recipe<?>> recipeHint) <I extends RecipeInput, T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> type, I input, Level level, @Nullable RecipeHolder<T> recipeHint) RecipeManager.getRecipes()<I extends RecipeInput, T extends Recipe<I>>
Stream<RecipeHolder<T>> RecipeMap.getRecipesFor(RecipeType<T> type, I container, Level level) 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> type, I input, Level level, @Nullable RecipeHolder<T> recipeHint) private voidRecipeCache.insert(CraftingInput input, @Nullable RecipeHolder<CraftingRecipe> recipe) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionstatic RecipeMapRecipeMap.create(Iterable<RecipeHolder<?>> recipes) private static List<RecipeManager.ServerDisplayInfo> RecipeManager.unpackRecipeInfo(Iterable<RecipeHolder<?>> recipes, FeatureFlagSet enabledFeatures) Constructors in net.minecraft.world.item.crafting with parameters of type RecipeHolderModifierConstructorDescriptionprivateEntry(NonNullList<ItemStack> key, int width, int height, @Nullable 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<?>> byType, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> byKey) privateRecipeMap(Multimap<RecipeType<?>, RecipeHolder<?>> byType, Map<ResourceKey<Recipe<?>>, RecipeHolder<?>> byKey) 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 level, CraftingInput input) Methods in net.minecraft.world.level.block with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate voidCrafterBlock.dispenseItem(ServerLevel level, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack results, BlockState blockState, RecipeHolder<?> recipe) -
Uses of RecipeHolder in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return RecipeHolderModifier and TypeMethodDescription@Nullable RecipeHolder<?> AbstractFurnaceBlockEntity.getRecipeUsed()Methods in net.minecraft.world.level.block.entity that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 position) Methods in net.minecraft.world.level.block.entity with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidAbstractFurnaceBlockEntity.setRecipeUsed(@Nullable RecipeHolder<?> recipeUsed) -
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.