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.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<?>> pRecipes) Methods in net.minecraft.client with parameters of type RecipeHolderModifier and TypeMethodDescriptionprivate static RecipeBookCategoriesClientRecipeBook.getCategory(RecipeHolder<?> pRecipe) Method parameters in net.minecraft.client with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static Map<RecipeBookCategories, List<List<RecipeHolder<?>>>> ClientRecipeBook.categorizeAndGroupRecipes(Iterable<RecipeHolder<?>> pRecipes) voidClientRecipeBook.setupCollections(Iterable<RecipeHolder<?>> pRecipes, RegistryAccess pRegistryAccess) -
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<?> pRecipe) static voidRecipeToast.addOrUpdate(ToastComponent pToastComponent, RecipeHolder<?> pRecipe) 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 pCraftable) private List<RecipeHolder<?>> RecipeButton.getOrderedRecipes()List<RecipeHolder<?>> RecipeCollection.getRecipes()List<RecipeHolder<?>> RecipeCollection.getRecipes(boolean pOnlyCraftable) Methods in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected voidOverlayRecipeComponent.OverlayRecipeButton.calculateIngredientsPositions(RecipeHolder<?> pRecipe) protected voidOverlayRecipeComponent.OverlaySmeltingRecipeButton.calculateIngredientsPositions(RecipeHolder<?> p_301196_) booleanRecipeCollection.isCraftable(RecipeHolder<?> pRecipe) voidGhostRecipe.setRecipe(RecipeHolder<?> pRecipe) voidAbstractFurnaceRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> pRecipe, List<Slot> pSlots) voidRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> pRecipe, List<Slot> pSlots) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type RecipeHolderModifier and TypeMethodDescriptionprivate static booleanRecipeCollection.allRecipesHaveSameResult(RegistryAccess pRegistryAccess, List<RecipeHolder<?>> pRecipes) voidRecipeBookComponent.recipesShown(List<RecipeHolder<?>> pRecipes) voidRecipeBookPage.recipesShown(List<RecipeHolder<?>> pRecipes) voidRecipeShownListener.recipesShown(List<RecipeHolder<?>> pRecipes) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type RecipeHolderModifierConstructorDescriptionOverlayRecipeButton(int pX, int pY, RecipeHolder<?> pRecipe, boolean pIsCraftable) 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 pRegistryAccess, List<RecipeHolder<?>> pRecipes) -
Uses of RecipeHolder in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidMultiPlayerGameMode.handlePlaceRecipe(int pContainerId, RecipeHolder<?> pRecipe, boolean pShiftDown) -
Uses of RecipeHolder in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidLocalPlayer.removeRecipeHighlight(RecipeHolder<?> pRecipe) -
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> pContext, String pName) -
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 pContainerId, RecipeHolder<?> pRecipe) ServerboundPlaceRecipePacket(int pContainerId, RecipeHolder<?> pRecipe, boolean pShiftDown) ServerboundRecipeBookSeenRecipePacket(RecipeHolder<?> pRecipe) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type RecipeHolderModifierConstructorDescriptionClientboundUpdateRecipesPacket(Collection<RecipeHolder<?>> p_133632_) -
Uses of RecipeHolder in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type RecipeHolderModifier and TypeMethodDescriptionprotected voidServerPlaceRecipe.handleRecipeClicked(RecipeHolder<R> pRecipe, boolean pPlaceAll) default voidPlaceRecipe.placeRecipe(int pWidth, int pHeight, int pOutputSlot, RecipeHolder<?> pRecipe, Iterator<T> pIngredients, int pMaxAmount) voidServerPlaceRecipe.recipeClicked(ServerPlayer pPlayer, RecipeHolder<R> pRecipe, boolean pPlaceAll) -
Uses of RecipeHolder in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidServerPlayer.triggerRecipeCrafted(RecipeHolder<?> pRecipe, List<ItemStack> pItems) Method parameters in net.minecraft.server.level with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerPlayer.awardRecipes(Collection<RecipeHolder<?>> pRecipes) intServerPlayer.resetRecipes(Collection<RecipeHolder<?>> pRecipes) -
Uses of RecipeHolder in net.minecraft.stats
Methods in net.minecraft.stats with parameters of type RecipeHolderModifier and TypeMethodDescriptionvoidRecipeBook.add(RecipeHolder<?> pRecipe) voidRecipeBook.addHighlight(RecipeHolder<?> pRecipe) booleanRecipeBook.contains(RecipeHolder<?> pRecipe) voidRecipeBook.remove(RecipeHolder<?> pRecipe) voidRecipeBook.removeHighlight(RecipeHolder<?> pRecipe) booleanRecipeBook.willHighlight(RecipeHolder<?> pRecipe) Method parameters in net.minecraft.stats with type arguments of type RecipeHolderModifier and TypeMethodDescriptionintServerRecipeBook.addRecipes(Collection<RecipeHolder<?>> pRecipes, ServerPlayer pPlayer) private voidServerRecipeBook.loadRecipes(ListTag pTags, Consumer<RecipeHolder<?>> pRecipeConsumer, RecipeManager pRecipeManager) 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 TypeMethodDescriptionintStackedContents.getBiggestCraftableStack(RecipeHolder<?> pRecipe, int pAmount, it.unimi.dsi.fastutil.ints.IntList pStackingIndexList) intStackedContents.getBiggestCraftableStack(RecipeHolder<?> pRecipe, it.unimi.dsi.fastutil.ints.IntList pStackingIndexList) voidPlayer.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 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> pRecipe) protected voidRecipeBookMenu.finishPlacingRecipe(RecipeHolder<R> pRecipe) voidRecipeBookMenu.handlePlacement(boolean pPlaceAll, RecipeHolder<?> pRecipe, ServerPlayer pPlayer) booleanAbstractFurnaceMenu.recipeMatches(RecipeHolder<AbstractCookingRecipe> pRecipe) booleanCraftingMenu.recipeMatches(RecipeHolder<CraftingRecipe> pRecipe) booleanInventoryMenu.recipeMatches(RecipeHolder<CraftingRecipe> pRecipe) abstract booleanRecipeBookMenu.recipeMatches(RecipeHolder<R> pRecipe) voidRecipeCraftingHolder.setRecipeUsed(RecipeHolder<?> pRecipe) default booleanRecipeCraftingHolder.setRecipeUsed(Level pLevel, ServerPlayer pPlayers, RecipeHolder<?> pRecipe) voidResultContainer.setRecipeUsed(RecipeHolder<?> pRecipe) protected static voidCraftingMenu.slotChangedCraftingGrid(AbstractContainerMenu pMenu, Level 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<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 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> pType, ResourceLocation pName) protected static RecipeHolder<?> RecipeManager.fromJson(ResourceLocation pRecipeId, JsonObject pJson, HolderLookup.Provider pRegistries) 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 pRecipeId) private <I extends RecipeInput,T extends Recipe<I>>
Collection<RecipeHolder<T>> RecipeManager.byType(RecipeType<T> pType) private Optional<RecipeHolder<CraftingRecipe>> RecipeCache.compute(CraftingInput pInput, Level pLevel) RecipeCache.get(Level pLevel, CraftingInput pInput) <I extends RecipeInput,T extends Recipe<I>>
List<RecipeHolder<T>> RecipeManager.getAllRecipesFor(RecipeType<T> pRecipeType) RecipeManager.getOrderedRecipes()RecipeManager.CachedCheck.getRecipeFor(I pInput, Level 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, ResourceLocation pLastRecipe) <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>>
List<RecipeHolder<T>> RecipeManager.getRecipesFor(RecipeType<T> pRecipeType, I pInput, Level pLevel) 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 TypeMethodDescriptionvoidRecipeManager.replaceRecipes(Iterable<RecipeHolder<?>> pRecipes) 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 pLevel, CraftingInput pInput) 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<CraftingRecipe> 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 TypeMethodDescriptionCampfireBlockEntity.getCookableRecipe(ItemStack pStack) List<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<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) private static booleanAbstractFurnaceBlockEntity.canBurn(RegistryAccess pRegistryAccess, RecipeHolder<?> pRecipe, NonNullList<ItemStack> pInventory, int pMaxStackSize, AbstractFurnaceBlockEntity furnace) voidAbstractFurnaceBlockEntity.setRecipeUsed(RecipeHolder<?> pRecipe) -
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.