Uses of Record Class
net.minecraft.world.item.ItemStackTemplate
Packages that use ItemStackTemplate
Package
Description
-
Uses of ItemStackTemplate in net.minecraft.advancements
Fields in net.minecraft.advancements declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateDisplayInfo.iconThe field for theiconrecord component.Methods in net.minecraft.advancements that return ItemStackTemplateModifier and TypeMethodDescriptionDisplayInfo.icon()Returns the value of theiconrecord component.Methods in net.minecraft.advancements with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStackTemplate icon, Component title, Component description, AdvancementType frame, boolean showToast, boolean announceChat, boolean hidden) Advancement.Builder.rootDisplay(ItemStackTemplate icon, Component title, Component description, Identifier background, AdvancementType frame, boolean showToast, boolean announceChat, boolean hidden) Constructors in net.minecraft.advancements with parameters of type ItemStackTemplateModifierConstructorDescriptionDisplayInfo(ItemStackTemplate icon, Component title, Component description, Optional<ClientAsset.ResourceTexture> background, AdvancementType type, boolean showToast, boolean announceToChat, boolean hidden) Creates an instance of aDisplayInforecord class. -
Uses of ItemStackTemplate in net.minecraft.client.gui.screens.advancements
Constructors in net.minecraft.client.gui.screens.advancements with parameters of type ItemStackTemplateModifierConstructorDescriptionAdvancementTab(Minecraft minecraft, AdvancementsScreen screen, AdvancementTabType type, int index, int page, AdvancementWidget root, ItemStackTemplate icon, Component title, Identifier background) AdvancementTab(Minecraft minecraft, AdvancementsScreen screen, AdvancementTabType type, int index, AdvancementWidget root, ItemStackTemplate icon, Component title, Identifier background) -
Uses of ItemStackTemplate in net.minecraft.client.gui.screens.inventory.tooltip
Methods in net.minecraft.client.gui.screens.inventory.tooltip that return types with arguments of type ItemStackTemplateModifier and TypeMethodDescriptionprivate List<ItemStackTemplate> ClientBundleTooltip.getShownItems(int amountOfItemsToShow) Method parameters in net.minecraft.client.gui.screens.inventory.tooltip with type arguments of type ItemStackTemplateModifier and TypeMethodDescriptionprivate voidClientBundleTooltip.extractSlot(int slotNumber, int drawX, int drawY, List<ItemStackTemplate> shownItems, int slotIndex, Font font, GuiGraphicsExtractor graphics) private intClientBundleTooltip.getAmountOfHiddenItems(List<ItemStackTemplate> shownItems) -
Uses of ItemStackTemplate in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionprotected TextureAtlasSpriteBreakingItemParticle.ItemParticleProvider.getSprite(ItemStackTemplate item, ClientLevel level, RandomSource random) -
Uses of ItemStackTemplate in net.minecraft.core.particles
Fields in net.minecraft.core.particles declared as ItemStackTemplateMethods in net.minecraft.core.particles that return ItemStackTemplateConstructors in net.minecraft.core.particles with parameters of type ItemStackTemplateModifierConstructorDescriptionItemParticleOption(ParticleType<ItemParticleOption> type, ItemStackTemplate itemStack) -
Uses of ItemStackTemplate in net.minecraft.data.recipes
Fields in net.minecraft.data.recipes declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateBrewingRecipeBuilder.outputprivate final ItemStackTemplateShapedRecipeBuilder.resultprivate final ItemStackTemplateShapelessRecipeBuilder.resultprivate final ItemStackTemplateSimpleCookingRecipeBuilder.resultprivate final ItemStackTemplateSingleItemRecipeBuilder.resultprivate final ItemStackTemplateSmithingTransformRecipeBuilder.resultMethods in net.minecraft.data.recipes that return ItemStackTemplateModifier and TypeMethodDescriptionprivate static ItemStackTemplateBrewingRecipeBuilder.potionOutput(Item potionContainer, Holder<Potion> potion) Methods in net.minecraft.data.recipes with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.blasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStackTemplate result, float experience, int cookingTime) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.campfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStackTemplate result, float experience, int cookingTime) protected ShapedRecipeBuilderRecipeProvider.shaped(RecipeCategory category, ItemStackTemplate stack) static ShapedRecipeBuilderShapedRecipeBuilder.shaped(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) protected ShapelessRecipeBuilderRecipeProvider.shapeless(RecipeCategory category, ItemStackTemplate result) static ShapelessRecipeBuilderShapelessRecipeBuilder.shapeless(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStackTemplate result, float experience, int cookingTime) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStackTemplate result, float experience, int cookingTime) static TransmuteRecipeBuilderTransmuteRecipeBuilder.transmute(RecipeCategory category, Ingredient input, Ingredient material, ItemStackTemplate result) Constructors in net.minecraft.data.recipes with parameters of type ItemStackTemplateModifierConstructorDescriptionprivateBrewingRecipeBuilder(PotionIngredient input, PotionIngredient reagent, ItemStackTemplate output) privateShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) privateShapelessRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) privateSimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStackTemplate result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) privateSingleItemRecipeBuilder(RecipeCategory category, SingleItemRecipe.Factory<?> factory, Ingredient ingredient, ItemStackTemplate result) SmithingTransformRecipeBuilder(Ingredient template, Ingredient base, Ingredient addition, RecipeCategory category, ItemStackTemplate result) -
Uses of ItemStackTemplate in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateHoverEvent.ShowItem.itemThe field for theitemrecord component.Methods in net.minecraft.network.chat that return ItemStackTemplateModifier and TypeMethodDescriptionHoverEvent.ShowItem.item()Returns the value of theitemrecord component.Constructors in net.minecraft.network.chat with parameters of type ItemStackTemplateModifierConstructorDescriptionShowItem(ItemStackTemplate item) Creates an instance of aShowItemrecord class. -
Uses of ItemStackTemplate in net.minecraft.server.dialog.body
Fields in net.minecraft.server.dialog.body declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateItemBody.itemThe field for theitemrecord component.Methods in net.minecraft.server.dialog.body that return ItemStackTemplateModifier and TypeMethodDescriptionItemBody.item()Returns the value of theitemrecord component.Constructors in net.minecraft.server.dialog.body with parameters of type ItemStackTemplateModifierConstructorDescriptionItemBody(ItemStackTemplate item, Optional<PlainMessage> description, boolean showDecorations, boolean showTooltip, int width, int height) Creates an instance of aItemBodyrecord class. -
Uses of ItemStackTemplate in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid that return ItemStackTemplateModifier and TypeMethodDescriptionstatic ItemStackTemplateRaid.getOminousBannerTemplate(HolderGetter<BannerPattern> patternGetter) -
Uses of ItemStackTemplate in net.minecraft.world.item
Fields in net.minecraft.world.item declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final @Nullable ItemStackTemplateprivate @Nullable ItemStackTemplateItem.Properties.craftingRemainingItemFields in net.minecraft.world.item with type parameters of type ItemStackTemplateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemStackTemplate> ItemStackTemplate.CODECstatic final com.mojang.serialization.MapCodec<ItemStackTemplate> ItemStackTemplate.MAP_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemStackTemplate> ItemStackTemplate.STREAM_CODECMethods in net.minecraft.world.item that return ItemStackTemplateModifier and TypeMethodDescriptionstatic ItemStackTemplateItemStackTemplate.fromNonEmptyStack(ItemStack itemStack) static ItemStackTemplateItemStackTemplate.fromNonEmptyStack(ItemStack itemStack, int newCount) static ItemStackTemplatefinal @Nullable ItemStackTemplateItem.getCraftingRemainder()Deprecated.static @Nullable ItemStackTemplateBundleItem.getSelectedItem(ItemStack stack) ItemStackTemplate.withCount(int count) Methods in net.minecraft.world.item with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionItem.Properties.craftRemainder(ItemStackTemplate craftingRemainingItem) static booleanItemStack.isSameItem(ItemStack a, @Nullable ItemStackTemplate b) Returns true if a and b refer to the same item, or if a is empty and b is null.static booleanItemStack.isSameItemSameComponents(ItemStack a, @Nullable ItemStackTemplate b) Compares the item and components of this stack against anItemStackTemplate.static booleanItemStack.matches(ItemStack a, @Nullable ItemStackTemplate b) Compares an itemstack with anItemStackTemplateas perItemStack.matches(ItemStack, ItemStack). -
Uses of ItemStackTemplate in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateSulfurCubeContent.absorbedBlockItemStackThe field for theabsorbedBlockItemStackrecord component.private final ItemStackTemplateUseRemainder.convertIntoThe field for theconvertIntorecord component.private final ItemStackTemplateItemContainerContents.Slot.itemThe field for theitemrecord component.Fields in net.minecraft.world.item.component with type parameters of type ItemStackTemplateModifier and TypeFieldDescriptionprivate final List<ItemStackTemplate> BundleContents.itemsprivate final List<ItemStackTemplate> ChargedProjectiles.itemsThe field for theitemsrecord component.private final List<Optional<ItemStackTemplate>> ItemContainerContents.itemsMethods in net.minecraft.world.item.component that return ItemStackTemplateModifier and TypeMethodDescriptionSulfurCubeContent.absorbedBlockItemStack()Returns the value of theabsorbedBlockItemStackrecord component.UseRemainder.convertInto()Returns the value of theconvertIntorecord component.BundleContents.getSelectedItem()ItemContainerContents.Slot.item()Returns the value of theitemrecord component.Methods in net.minecraft.world.item.component that return types with arguments of type ItemStackTemplateModifier and TypeMethodDescriptionprivate static List<Optional<ItemStackTemplate>> ItemContainerContents.emptyContents(int size) BundleContents.items()ChargedProjectiles.items()Returns the value of theitemsrecord component.ItemContainerContents.nonEmptyItems()private Stream<ItemStackTemplate> ItemContainerContents.nonEmptyItemsStream()Methods in net.minecraft.world.item.component with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionstatic ChargedProjectilesChargedProjectiles.of(ItemStackTemplate stack) Constructors in net.minecraft.world.item.component with parameters of type ItemStackTemplateModifierConstructorDescriptionprivateSlot(int index, ItemStackTemplate item) Creates an instance of aSlotrecord class.SulfurCubeContent(ItemStackTemplate absorbedBlockItemStack) Creates an instance of aSulfurCubeContentrecord class.UseRemainder(ItemStackTemplate convertInto) Creates an instance of aUseRemainderrecord class.Constructor parameters in net.minecraft.world.item.component with type arguments of type ItemStackTemplateModifierConstructorDescriptionBundleContents(List<ItemStackTemplate> items) privateBundleContents(List<ItemStackTemplate> items, int selectedItem) ChargedProjectiles(List<ItemStackTemplate> items) Creates an instance of aChargedProjectilesrecord class.private -
Uses of ItemStackTemplate in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateBrewingRecipe.outputprivate final ItemStackTemplateBannerDuplicateRecipe.resultprivate final ItemStackTemplateBookCloningRecipe.resultprivate final ItemStackTemplateDecoratedPotRecipe.resultprivate final ItemStackTemplateDyeRecipe.resultprivate final ItemStackTemplateFireworkRocketRecipe.resultprivate final ItemStackTemplateFireworkStarFadeRecipe.resultprivate final ItemStackTemplateFireworkStarRecipe.resultprivate final ItemStackTemplateImbueRecipe.resultprivate final ItemStackTemplateShapedRecipe.resultprivate final ItemStackTemplateShapelessRecipe.resultprivate final ItemStackTemplateShieldDecorationRecipe.resultprivate final ItemStackTemplateSingleItemRecipe.resultprivate final ItemStackTemplateSmithingTransformRecipe.resultMethods in net.minecraft.world.item.crafting that return ItemStackTemplateModifier and TypeMethodDescriptionBrewingRecipe.getOutput()ShapelessRecipe.result()Returns the result of this shapeless recipe or null if it is not static and needs ot be obtained by assembling it.protected ItemStackTemplateSingleItemRecipe.result()Methods in net.minecraft.world.item.crafting that return types with arguments of type ItemStackTemplateModifier and TypeMethodDescriptionprivate static Optional<ItemStackTemplate> DecoratedPotRecipe.convertToOptional(ItemStack input) Methods in net.minecraft.world.item.crafting with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionAbstractCookingRecipe.Factory.create(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo cbookInfotegory, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) BrewingRecipe.Factory.create(Recipe.CommonInfo commonInfo, PotionIngredient input, PotionIngredient reagent, ItemStackTemplate output) SingleItemRecipe.Factory.create(Recipe.CommonInfo commonInfo, Ingredient ingredient, ItemStackTemplate result) static ItemStackTransmuteRecipe.createWithOriginalComponents(ItemStackTemplate target, ItemStack input) static ItemStackTransmuteRecipe.createWithOriginalComponents(ItemStackTemplate target, ItemStack input, int extraCount) static TransmuteResultTransmuteResult.fromTemplate(ItemStackTemplate template) Constructors in net.minecraft.world.item.crafting with parameters of type ItemStackTemplateModifierConstructorDescriptionAbstractCookingRecipe(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo bookInfo, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) BannerDuplicateRecipe(Ingredient banner, ItemStackTemplate result) BlastingRecipe(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo bookInfo, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) BookCloningRecipe(Ingredient source, Ingredient material, MinMaxBounds.Ints allowedGenerations, ItemStackTemplate result) BrewingRecipe(PotionIngredient input, PotionIngredient reagent, ItemStackTemplate output) CampfireCookingRecipe(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo bookInfo, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) DecoratedPotRecipe(Ingredient backPattern, Ingredient leftPattern, Ingredient rightPattern, Ingredient frontPattern, ItemStackTemplate result) DecoratedPotRecipe(Ingredient wallPattern, ItemStackTemplate result) DyeRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient target, Ingredient dye, ItemStackTemplate result) FireworkRocketRecipe(Ingredient shell, Ingredient fuel, Ingredient star, ItemStackTemplate result) FireworkStarFadeRecipe(Ingredient target, Ingredient dye, ItemStackTemplate result) FireworkStarRecipe(Map<FireworkExplosion.Shape, Ingredient> shapes, Ingredient trail, Ingredient twinkle, Ingredient fuel, Ingredient dye, ItemStackTemplate result) ImbueRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient source, Ingredient material, ItemStackTemplate result) ShapedRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, ShapedRecipePattern pattern, ItemStackTemplate result) ShapelessRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, ItemStackTemplate result, List<Ingredient> ingredients) ShieldDecorationRecipe(Ingredient banner, Ingredient target, ItemStackTemplate result) SingleItemRecipe(Recipe.CommonInfo commonInfo, Ingredient input, ItemStackTemplate result) SmeltingRecipe(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo bookInfo, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) SmithingTransformRecipe(Recipe.CommonInfo commonInfo, Optional<Ingredient> template, Ingredient base, Optional<Ingredient> addition, ItemStackTemplate result) SmokingRecipe(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo bookInfo, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) StonecutterRecipe(Recipe.CommonInfo commonInfo, Ingredient ingredient, ItemStackTemplate result) -
Uses of ItemStackTemplate in net.minecraft.world.item.crafting.display
Fields in net.minecraft.world.item.crafting.display declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateSlotDisplay.ItemStackSlotDisplay.stackThe field for thestackrecord component.Methods in net.minecraft.world.item.crafting.display that return ItemStackTemplateModifier and TypeMethodDescriptionSlotDisplay.ItemStackSlotDisplay.stack()Returns the value of thestackrecord component.Constructors in net.minecraft.world.item.crafting.display with parameters of type ItemStackTemplateModifierConstructorDescriptionCreates an instance of aItemStackSlotDisplayrecord class. -
Uses of ItemStackTemplate in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as ItemStackTemplateModifier and TypeFieldDescriptionprivate final ItemStackTemplateVillagerTrade.Builder.givesprivate final ItemStackTemplateVillagerTrade.givesMethods in net.minecraft.world.item.trading with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionstatic VillagerTrade.BuilderVillagerTrade.builder(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount) static VillagerTrade.BuilderVillagerTrade.builder(TradeCost wants, TradeCost additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount) Constructors in net.minecraft.world.item.trading with parameters of type ItemStackTemplateModifierConstructorDescriptionBuilder(TradeCost wants, ItemStackTemplate gives, Holder<ContextIntProvider> maxUses, Holder<ContextIntProvider> xp, Holder<ContextFloatProvider> reputationDiscount) privateVillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, Holder<ContextIntProvider> maxUses, Holder<ContextIntProvider> xp, Holder<ContextFloatProvider> reputationDiscount, Optional<Holder<LootItemCondition>> merchantPredicate, Optional<Holder<LootItemFunction>> givenItemModifier, Optional<HolderSet<Enchantment>> doubleTradePriceEnchantments) -
Uses of ItemStackTemplate in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity with type parameters of type ItemStackTemplateModifier and TypeFieldDescriptionprivate final Optional<ItemStackTemplate> PotDecorations.backThe field for thebackrecord component.private final Optional<ItemStackTemplate> PotDecorations.frontThe field for thefrontrecord component.private final Optional<ItemStackTemplate> PotDecorations.leftThe field for theleftrecord component.private final Optional<ItemStackTemplate> PotDecorations.rightThe field for therightrecord component.Methods in net.minecraft.world.level.block.entity that return ItemStackTemplateModifier and TypeMethodDescriptionstatic ItemStackTemplateDecoratedPotBlockEntity.createDecoratedPotTemplate(PotDecorations decorations) Methods in net.minecraft.world.level.block.entity that return types with arguments of type ItemStackTemplateModifier and TypeMethodDescriptionPotDecorations.back()Returns the value of thebackrecord component.PotDecorations.front()Returns the value of thefrontrecord component.PotDecorations.left()Returns the value of theleftrecord component.PotDecorations.right()Returns the value of therightrecord component.Method parameters in net.minecraft.world.level.block.entity with type arguments of type ItemStackTemplateModifier and TypeMethodDescriptionprivate static voidPotDecorations.addSideDetailsToTooltip(Consumer<Component> consumer, Optional<ItemStackTemplate> side) Constructor parameters in net.minecraft.world.level.block.entity with type arguments of type ItemStackTemplateModifierConstructorDescriptionPotDecorations(Optional<ItemStackTemplate> back, Optional<ItemStackTemplate> left, Optional<ItemStackTemplate> right, Optional<ItemStackTemplate> front) Creates an instance of aPotDecorationsrecord class. -
Uses of ItemStackTemplate in net.neoforged.neoforge.common.crafting
Methods in net.neoforged.neoforge.common.crafting with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionstatic IngredientDataComponentIngredient.of(boolean exhaustive, ItemStackTemplate stack) Creates a new ingredient matching the given item, containing the given components -
Uses of ItemStackTemplate in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return ItemStackTemplateModifier and TypeMethodDescriptiondefault @Nullable ItemStackTemplateIItemExtension.getCraftingRemainder(ItemInstance instance) ItemStack sensitive version ofItem.getCraftingRemainder()()}.default @Nullable ItemStackTemplateItemInstanceExtension.getCraftingRemainder()ItemInstance sensitive version ofItem.getCraftingRemainder(). -
Uses of ItemStackTemplate in net.neoforged.neoforge.transfer.item
Methods in net.neoforged.neoforge.transfer.item that return ItemStackTemplateModifier and TypeMethodDescriptionprotected @Nullable ItemStackTemplateBundleItemHandler.getStack(int index) Methods in net.neoforged.neoforge.transfer.item with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionbooleanItemResource.matches(@Nullable ItemStackTemplate template) Returns true if this resource matches the item and components of the passed template.static ItemResourceItemResource.of(@Nullable ItemStackTemplate template) Creates an ItemResource using the default or copy of the passed in item stack.
IItemExtension.getCraftingRemainder(ItemStack)instead