Uses of Record Class
net.minecraft.world.item.crafting.RecipeHolder
Packages that use RecipeHolder
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of RecipeHolder in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type RecipeHolderModifier and TypeMethodDescriptionbooleanRecipeUnlockedTrigger.TriggerInstance.matches(RecipeHolder<?> recipe) voidRecipeUnlockedTrigger.trigger(ServerPlayer player, RecipeHolder<?> recipe) -
Uses of RecipeHolder in net.minecraft.client
Methods in net.minecraft.client that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static Map<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes(Iterable<RecipeHolder<?>> recipes) Methods in net.minecraft.client with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static RecipeBookCategoriesClientRecipeBook.getCategory(RecipeHolder<?> p_recipe) Method parameters in net.minecraft.client with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static Map<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes(Iterable<RecipeHolder<?>> recipes) voidClientRecipeBook.setupCollections(Iterable<RecipeHolder<?>> recipes, RegistryAccess registryAccess) -
Uses of RecipeHolder in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts with type parameters of type RecipeHolderMethods in net.minecraft.client.gui.components.toasts with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate voidRecipeToast.addItem(RecipeHolder<?> recipe) static voidRecipeToast.addOrUpdate(ToastComponent toastComponent, RecipeHolder<?> recipe) Constructors in net.minecraft.client.gui.components.toasts with parameters of type RecipeHolder -
Uses of RecipeHolder in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook declared as RecipeHolderModifier and TypeFieldDescriptionprivate RecipeHolder<?> RecipeBookPage.lastClickedRecipeprivate RecipeHolder<?> OverlayRecipeComponent.lastRecipeClickedprivate RecipeHolder<?> GhostRecipe.recipe(package private) final RecipeHolder<?> OverlayRecipeComponent.OverlayRecipeButton.recipeFields in net.minecraft.client.gui.screens.recipebook with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final Set<RecipeHolder<?>> RecipeCollection.craftableprivate final Set<RecipeHolder<?>> RecipeCollection.fitsDimensionsprivate final Set<RecipeHolder<?>> RecipeCollection.knownprivate final List<RecipeHolder<?>> RecipeCollection.recipesMethods in net.minecraft.client.gui.screens.recipebook that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder<?> RecipeBookPage.getLastClickedRecipe()RecipeHolder<?> OverlayRecipeComponent.getLastRecipeClicked()RecipeHolder<?> GhostRecipe.getRecipe()RecipeHolder<?> RecipeButton.getRecipe()Methods in net.minecraft.client.gui.screens.recipebook that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList<RecipeHolder<?>> RecipeCollection.getDisplayRecipes(boolean craftable) private List<RecipeHolder<?>> RecipeButton.getOrderedRecipes()List<RecipeHolder<?>> RecipeCollection.getRecipes()List<RecipeHolder<?>> RecipeCollection.getRecipes(boolean onlyCraftable) Methods in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected voidOverlayRecipeComponent.OverlayRecipeButton.calculateIngredientsPositions(RecipeHolder<?> recipe) protected voidOverlayRecipeComponent.OverlaySmeltingRecipeButton.calculateIngredientsPositions(RecipeHolder<?> p_301196_) booleanRecipeCollection.isCraftable(RecipeHolder<?> recipe) voidGhostRecipe.setRecipe(RecipeHolder<?> recipe) voidAbstractFurnaceRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> recipe, List<Slot> slots) voidRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> recipe, List<Slot> slots) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static booleanRecipeCollection.allRecipesHaveSameResult(RegistryAccess registryAccess, List<RecipeHolder<?>> recipes) voidRecipeBookComponent.recipesShown(List<RecipeHolder<?>> recipes) voidRecipeBookPage.recipesShown(List<RecipeHolder<?>> recipes) voidRecipeShownListener.recipesShown(List<RecipeHolder<?>> recipes) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifierConstructorDescriptionOverlayRecipeButton(int x, int y, RecipeHolder<?> recipe, boolean isCraftable) OverlaySmeltingRecipeButton(int p_100262_, int p_100263_, RecipeHolder<?> p_301104_, boolean p_100265_) Constructor parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifierConstructorDescriptionRecipeCollection(RegistryAccess registryAccess, List<RecipeHolder<?>> recipes) -
Uses of RecipeHolder in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidMultiPlayerGameMode.handlePlaceRecipe(int containerId, RecipeHolder<?> recipe, boolean shiftDown) -
Uses of RecipeHolder in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type RecipeHolder -
Uses of RecipeHolder in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return RecipeHolderModifier and TypeMethodDescriptionstatic RecipeHolder<?> ResourceLocationArgument.getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of RecipeHolder in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final List<RecipeHolder<?>> ClientboundUpdateRecipesPacket.recipesMethods in net.minecraft.network.protocol.game that return types with arguments of type RecipeHolderModifier and TypeMethodDescriptionList<RecipeHolder<?>> ClientboundUpdateRecipesPacket.getRecipes()Constructors in net.minecraft.network.protocol.game with parameters of type RecipeHolderModifierConstructorDescriptionClientboundPlaceGhostRecipePacket(int containerId, RecipeHolder<?> recipe) ServerboundPlaceRecipePacket(int containerId, RecipeHolder<?> recipe, boolean shiftDown) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type RecipeHolderModifierConstructorDescriptionClientboundUpdateRecipesPacket(Collection<RecipeHolder<?>> recipes) -
Uses of RecipeHolder in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected voidServerPlaceRecipe.handleRecipeClicked(RecipeHolder<R> recipe, boolean placeAll) default voidPlaceRecipe.placeRecipe(int width, int height, int outputSlot, RecipeHolder<?> recipe, Iterator<T> ingredients, int maxAmount) voidServerPlaceRecipe.recipeClicked(ServerPlayer player, RecipeHolder<R> recipe, boolean placeAll) -
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> items) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerPlayer.awardRecipes(Collection<RecipeHolder<?>> recipes) intServerPlayer.resetRecipes(Collection<RecipeHolder<?>> recipes) -
Uses of RecipeHolder in net.minecraft.stats
Methods in net.minecraft.stats with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidRecipeBook.add(RecipeHolder<?> recipe) voidRecipeBook.addHighlight(RecipeHolder<?> recipe) booleanRecipeBook.contains(RecipeHolder<?> recipe) voidRecipeBook.remove(RecipeHolder<?> recipe) voidRecipeBook.removeHighlight(RecipeHolder<?> recipe) booleanRecipeBook.willHighlight(RecipeHolder<?> recipe) Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerRecipeBook.addRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player) private voidServerRecipeBook.loadRecipes(ListTag tags, Consumer<RecipeHolder<?>> recipeConsumer, RecipeManager recipeManager) 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 TypeMethodDescriptionintStackedContents.getBiggestCraftableStack(RecipeHolder<?> recipe, int amount, it.unimi.dsi.fastutil.ints.IntList stackingIndexList) intStackedContents.getBiggestCraftableStack(RecipeHolder<?> recipe, it.unimi.dsi.fastutil.ints.IntList stackingIndexList) voidPlayer.triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> items) Method parameters in net.minecraft.world.entity.player with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintPlayer.awardRecipes(Collection<RecipeHolder<?>> recipes) intPlayer.resetRecipes(Collection<RecipeHolder<?>> recipes) -
Uses of RecipeHolder in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as RecipeHolderModifier and TypeFieldDescriptionprivate RecipeHolder<?> ResultContainer.recipeUsedprivate RecipeHolder<SmithingRecipe> SmithingMenu.selectedRecipeFields in net.minecraft.world.inventory with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final List<RecipeHolder<SmithingRecipe>> SmithingMenu.recipesprivate List<RecipeHolder<StonecutterRecipe>> StonecutterMenu.recipesMethods in net.minecraft.world.inventory that return RecipeHolderModifier and TypeMethodDescriptionRecipeHolder<?> RecipeCraftingHolder.getRecipeUsed()RecipeHolder<?> ResultContainer.getRecipeUsed()Methods in net.minecraft.world.inventory that return types with arguments of type RecipeHolderMethods in net.minecraft.world.inventory with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidCraftingMenu.finishPlacingRecipe(RecipeHolder<CraftingRecipe> recipe) protected voidRecipeBookMenu.finishPlacingRecipe(RecipeHolder<R> recipe) voidRecipeBookMenu.handlePlacement(boolean placeAll, RecipeHolder<?> recipe, ServerPlayer player) booleanAbstractFurnaceMenu.recipeMatches(RecipeHolder<AbstractCookingRecipe> recipe) booleanCraftingMenu.recipeMatches(RecipeHolder<CraftingRecipe> recipe) booleanInventoryMenu.recipeMatches(RecipeHolder<CraftingRecipe> recipe) abstract booleanRecipeBookMenu.recipeMatches(RecipeHolder<R> recipe) voidRecipeCraftingHolder.setRecipeUsed(RecipeHolder<?> recipe) default booleanRecipeCraftingHolder.setRecipeUsed(Level level, ServerPlayer players, RecipeHolder<?> recipe) voidResultContainer.setRecipeUsed(RecipeHolder<?> recipe) protected static voidCraftingMenu.slotChangedCraftingGrid(AbstractContainerMenu menu, Level level, Player player, CraftingContainer craftSlots, ResultContainer resultSlots, RecipeHolder<CraftingRecipe> recipe) -
Uses of RecipeHolder in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as RecipeHolderModifier and TypeFieldDescriptionprivate 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 Map<ResourceLocation, RecipeHolder<?>> RecipeManager.byNameprivate com.google.common.collect.Multimap<RecipeType<?>, RecipeHolder<?>> RecipeManager.byTypestatic final StreamCodec<RegistryFriendlyByteBuf, RecipeHolder<?>> RecipeHolder.STREAM_CODECMethods in net.minecraft.world.item.crafting that return RecipeHolderModifier and TypeMethodDescriptionprivate <T extends Recipe<?>>
RecipeHolder<T> RecipeManager.byKeyTyped(RecipeType<T> type, ResourceLocation name) protected static RecipeHolder<?> RecipeManager.fromJson(ResourceLocation recipeId, com.google.gson.JsonObject json, HolderLookup.Provider registries) 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(ResourceLocation recipeId) private <I extends RecipeInput,T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeManager.byType(RecipeType<T> type) private Optional<RecipeHolder<CraftingRecipe>> RecipeCache.compute(CraftingInput input, Level level) RecipeCache.get(Level level, CraftingInput input) <I extends RecipeInput,T extends Recipe<I>>
List<RecipeHolder<T>> RecipeManager.getAllRecipesFor(RecipeType<T> recipeType) RecipeManager.getOrderedRecipes()RecipeManager.CachedCheck.getRecipeFor(I input, Level level) <I extends RecipeInput,T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> recipeType, I input, Level level) <I extends RecipeInput,T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> recipeType, I input, Level level, ResourceLocation lastRecipe) <I extends RecipeInput,T extends Recipe<I>>
Optional<RecipeHolder<T>> RecipeManager.getRecipeFor(RecipeType<T> recipeType, I input, Level level, RecipeHolder<T> lastRecipe) RecipeManager.getRecipes()<I extends RecipeInput,T extends Recipe<I>>
List<RecipeHolder<T>> RecipeManager.getRecipesFor(RecipeType<T> recipeType, I input, Level level) 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> recipeType, I input, Level level, RecipeHolder<T> lastRecipe) private voidRecipeCache.insert(CraftingInput input, RecipeHolder<CraftingRecipe> recipe) Method parameters in net.minecraft.world.item.crafting with type arguments of type RecipeHolderModifier and TypeMethodDescriptionvoidRecipeManager.replaceRecipes(Iterable<RecipeHolder<?>> recipes) 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. -
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(Level level, CraftingInput input) Methods in net.minecraft.world.level.block with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate voidCrafterBlock.dispenseItem(ServerLevel level, BlockPos pos, CrafterBlockEntity crafter, ItemStack stack, BlockState state, RecipeHolder<CraftingRecipe> recipe) -
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 TypeMethodDescriptionCampfireBlockEntity.getCookableRecipe(ItemStack stack) List<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 popVec) Methods in net.minecraft.world.level.block.entity with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static booleanAbstractFurnaceBlockEntity.burn(RegistryAccess registryAccess, RecipeHolder<?> recipe, NonNullList<ItemStack> inventory, int maxStackSize, AbstractFurnaceBlockEntity furnace) private static booleanAbstractFurnaceBlockEntity.canBurn(RegistryAccess registryAccess, RecipeHolder<?> recipe, NonNullList<ItemStack> inventory, int maxStackSize, AbstractFurnaceBlockEntity furnace) voidAbstractFurnaceBlockEntity.setRecipeUsed(RecipeHolder<?> recipe) -
Uses of RecipeHolder in net.neoforged.neoforge.client
Fields in net.neoforged.neoforge.client with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate static final Map<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RecipeBookManager.RECIPE_CATEGORY_LOOKUPSMethods in net.neoforged.neoforge.client with parameters of type RecipeHolderModifier 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. -
Uses of RecipeHolder in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event with type parameters of type RecipeHolderModifier and TypeFieldDescriptionprivate final Map<RecipeType<?>, Function<RecipeHolder<?>, RecipeBookCategories>> RegisterRecipeBookCategoriesEvent.recipeCategoryLookupsMethod parameters in net.neoforged.neoforge.client.event with type arguments of type RecipeHolderModifier and TypeMethodDescriptionvoidRegisterRecipeBookCategoriesEvent.registerRecipeCategoryFinder(RecipeType<?> type, Function<RecipeHolder<?>, RecipeBookCategories> lookup) Registers a category lookup for a certain recipe type.