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 ItemStackTemplateMethods in net.minecraft.advancements that return ItemStackTemplateMethods in net.minecraft.advancements with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStackTemplate icon, Component title, Component description, @Nullable 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 announceChat, boolean hidden) -
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 intClientBundleTooltip.getAmountOfHiddenItems(List<ItemStackTemplate> shownItems) private voidClientBundleTooltip.renderSlot(int slotNumber, int drawX, int drawY, List<ItemStackTemplate> shownItems, int slotIndex, Font font, GuiGraphics graphics) -
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 ItemStackTemplateShapedRecipeBuilder.resultprivate final ItemStackTemplateShapelessRecipeBuilder.resultprivate final ItemStackTemplateSimpleCookingRecipeBuilder.resultprivate final ItemStackTemplateSingleItemRecipeBuilder.resultprivate final ItemStackTemplateSmithingTransformRecipeBuilder.resultprivate final ItemStackTemplateTransmuteRecipeBuilder.resultMethods in net.minecraft.data.recipes with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionprotected 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 TransmuteRecipeBuilderTransmuteRecipeBuilder.transmute(RecipeCategory category, Ingredient input, Ingredient material, ItemStackTemplate result) Constructors in net.minecraft.data.recipes with parameters of type ItemStackTemplateModifierConstructorDescriptionprivateShapedRecipeBuilder(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) privateTransmuteRecipeBuilder(RecipeCategory category, ItemStackTemplate result, Ingredient input, Ingredient material) -
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) final @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 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 TypeMethodDescriptionUseRemainder.convertInto()Returns the value of theconvertIntorecord component.@Nullable ItemStackTemplateBundleContents.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.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 ItemStackTemplateBannerDuplicateRecipe.resultprivate final ItemStackTemplateBookCloningRecipe.resultprivate final ItemStackTemplateDecoratedPotRecipe.resultprivate final ItemStackTemplateDyeRecipe.resultprivate final ItemStackTemplateFireworkRocketRecipe.resultprivate final ItemStackTemplateFireworkStarFadeRecipe.resultprivate final ItemStackTemplateFireworkStarRecipe.resultprivate final ItemStackTemplateImbueRecipe.resultprivate final ItemStackTemplateMapExtendingRecipe.resultprivate final ItemStackTemplateShapedRecipe.resultprivate final ItemStackTemplateShapelessRecipe.resultprivate final ItemStackTemplateShieldDecorationRecipe.resultprivate final ItemStackTemplateSingleItemRecipe.resultprivate final ItemStackTemplateSmithingTransformRecipe.resultprivate final ItemStackTemplateTransmuteRecipe.resultMethods in net.minecraft.world.item.crafting that return ItemStackTemplateModifier and TypeMethodDescription@Nullable ItemStackTemplateShapelessRecipe.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 with parameters of type ItemStackTemplateModifier and TypeMethodDescriptionAbstractCookingRecipe.Factory.create(Recipe.CommonInfo commonInfo, AbstractCookingRecipe.CookingBookInfo cbookInfotegory, Ingredient ingredient, ItemStackTemplate result, float experience, int cookingTime) 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) 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) 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) MapExtendingRecipe(Ingredient map, 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) TransmuteRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient input, Ingredient material, MinMaxBounds.Ints materialCount, ItemStackTemplate result, boolean addMaterialCountToResult) -
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 ItemStackTemplateConstructors in net.minecraft.world.item.trading with parameters of type ItemStackTemplateModifierConstructorDescriptionVillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers) VillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers, Optional<HolderSet<Enchantment>> doubleTradePriceEnchantments) privateVillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, NumberProvider maxUses, NumberProvider reputationDiscount, NumberProvider xp, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers, Optional<HolderSet<Enchantment>> doubleTradePriceEnchantments) VillagerTrade(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers) -
Uses of ItemStackTemplate in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return ItemStackTemplateModifier and TypeMethodDescriptionstatic ItemStackTemplateDecoratedPotBlockEntity.createDecoratedPotTemplate(PotDecorations decorations) -
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 ItemStackTemplateIItemStackExtension.getCraftingRemainder()ItemStack 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