History - net.minecraft.item.ItemStack
26.3-snapshot-3
Names
Fields
Constructors
Methods
26.3-snapshot-2
Names
Fields
Constructors
Methods
26.3-snapshot-1
Names
Fields
Constructors
Methods
26.2
Names
Fields
Constructors
Methods
DamageSource (LivingEntity, Supplier<DamageSource>): getDamageSource, method_75220, getDamageSource
DamageSource (LivingEntity): getDamageSource, method_75220, getDamageSource
26.1.2
Names
Fields
Constructors
Methods
26.1.1
Names
Fields
Constructors
Methods
26.1
Names
Fields
com.mojang.serialization.Codec<ItemStack>: SINGLE_ITEM_CODEC, field_49747, UNCOUNTED_CODEC
com.mojang.serialization.Codec<ItemStack>: STRICT_CODEC, field_51397, VALIDATED_CODEC
com.mojang.serialization.Codec<ItemStack>: STRICT_SINGLE_ITEM_CODEC, field_51398, VALIDATED_UNCOUNTED_CODEC
com.mojang.serialization.Codec<ItemStack>: SIMPLE_ITEM_CODEC, field_49267, REGISTRY_ENTRY_CODEC
Item: item, field_8038, item
Entity: entityRepresentation, field_24093, holder
RegistryEntry<Item>: item, field_8038, item
Constructors
(ItemConvertible, int, MergedComponentMap)
(RegistryEntry<Item>, int, MergedComponentMap)
Methods
RegistryEntry<Item> (): getItemHolder, method_41409, getRegistryEntry
boolean (TagKey<Item>): is, method_31573, isIn
boolean (Item): is, method_31574, isOf
boolean (RegistryEntry<Item>): is, method_41406, itemMatches
boolean (RegistryEntryList<Item>): is, method_53187, isIn
Stream<TagKey<Item>> (): getTags, method_40133, streamTags
int (): getMaxStackSize, method_7914, getMaxCount
boolean (): isFramed, method_7961, isInFrame
void (Entity): setEntityRepresentation, method_27320, setHolder
ItemFrameEntity (): getFrame, method_7945, getFrame
Entity (): getEntityRepresentation, method_27319, getHolder
Optional (LivingEntity): lambda$getDamageSource$23, method_75224, method_75224
Optional (LivingEntity): lambda$getDamageSource$1, method_75224, method_75224
DamageSource (LivingEntity, RegistryEntry): lambda$getDamageSource$22, method_75221, method_75221
DamageSource (LivingEntity, RegistryEntry): lambda$getDamageSource$0, method_75221, method_75221
Optional (LivingEntity, LazyRegistryEntryReference): lambda$getDamageSource$21, method_75219, method_75219
Style (Style): lambda$getDisplayName$20, method_7966, method_7966
Style (Style): lambda$getDisplayName$0, method_7966, method_7966
void (org.apache.commons.lang3.function.TriConsumer, RegistryEntry, EntityAttributeModifier): lambda$forEachModifier$19, method_70724, method_70724
void (org.apache.commons.lang3.function.TriConsumer, RegistryEntry, EntityAttributeModifier): lambda$forEachModifier$0, method_70724, method_70724
void (RegistryEntry, int, ItemEnchantmentsComponent$Builder): lambda$enchant$18, method_57356, method_57356
void (RegistryEntry, int, ItemEnchantmentsComponent$Builder): lambda$enchant$0, method_57356, method_57356
void (org.apache.commons.lang3.mutable.MutableBoolean, Consumer, AttributeModifierSlot, PlayerEntity, RegistryEntry, EntityAttributeModifier, AttributeModifiersComponent$Display): lambda$addAttributeTooltips$17, method_57370, method_57370
void (org.apache.commons.lang3.mutable.MutableBoolean, Consumer, AttributeModifierSlot, PlayerEntity, RegistryEntry, EntityAttributeModifier, AttributeModifiersComponent$Display): lambda$addAttributeTooltips$0, method_57370, method_57370
Optional (ItemStack): lambda$lenientOptionalFieldOf$16, method_56700, method_56700
Optional (ItemStack): lambda$lenientOptionalFieldOf$1, method_56700, method_56700
ItemStack (Optional): lambda$lenientOptionalFieldOf$15, method_56703, method_56703
ItemStack (Optional): lambda$lenientOptionalFieldOf$0, method_56703, method_56703
void (LivingEntity, EquipmentSlot, Item): lambda$hurtAndBreak$14, method_56097, method_56097
void (LivingEntity, EquipmentSlot, Item): lambda$hurtAndBreak$0, method_56097, method_56097
void (Item): lambda$hurtWithoutBreaking$13, method_61654, method_61654
void (Item): lambda$hurtWithoutBreaking$0, method_61654, method_61654
String (int, int): lambda$validateComponents$12, method_60502, method_60502
String (int, int): lambda$validateContainedItemSizes$0, method_60502, method_60502
String (): lambda$validateComponents$11, method_59690, method_59690
String (): lambda$validateComponents$0, method_59690, method_59690
Optional (ItemStack): lambda$static$10, method_57382, method_57382
Optional (ItemStack): lambda$static$4, method_57382, method_57382
ItemStack (Optional): lambda$static$9, method_57378, method_57378
ItemStack (Optional): lambda$static$3, method_57378, method_57378
String (ItemStack): lambda$validateStrict$8, method_57384, method_57384
String (ItemStack): lambda$validateStrict$1, method_57384, method_57384
ItemStack (ItemStack, Unit): lambda$validateStrict$7, method_57383, method_57383
com.mojang.serialization.Codec (): lambda$static$6, method_55066, method_55066
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$5, method_58092, method_58092
ItemStack (RegistryEntry, ComponentChanges): lambda$static$4, method_58093, method_58093
ComponentChanges (ItemStack): lambda$static$3, method_58094, method_58094
com.mojang.serialization.MapCodec (com.mojang.serialization.Codec): lambda$static$2, method_57352, method_57352
com.mojang.serialization.MapCodec (com.mojang.serialization.Codec): lambda$static$0, method_57352, method_57352
ComponentChanges (ItemStack): lambda$static$0, method_57385, method_57385
ComponentChanges (ItemStack): lambda$static$2, method_57385, method_57385
com.mojang.serialization.DataResult<?> (Iterable<? extends ItemStackView>): validateContainedItemSizes, method_1_842, validateContainedItemStackViews
RegistryEntry<Item> (): typeHolder, method_40180, getRegistryEntry
int (): count, comp_1_67, count
ItemStack (ItemStack, Object): lambda$validateStrict$0, method_57383, method_57383
1.21.11_unobfuscated
Names
net.minecraft.world.item.ItemStack
net.minecraft.class_1799
net.minecraft.item.ItemStack
Fields
List<Text>: OP_NBT_WARNING, field_55546, OPERATOR_WARNINGS
Text: UNBREAKABLE_TOOLTIP, field_56297, UNBREAKABLE_TEXT
Text: INTANGIBLE_TOOLTIP, field_63379, INTANGIBLE_TEXT
com.mojang.serialization.MapCodec<ItemStack>: MAP_CODEC, field_55709, MAP_CODEC
com.mojang.serialization.Codec<ItemStack>: CODEC, field_24671, CODEC
com.mojang.serialization.Codec<ItemStack>: SINGLE_ITEM_CODEC, field_49747, UNCOUNTED_CODEC
com.mojang.serialization.Codec<ItemStack>: STRICT_CODEC, field_51397, VALIDATED_CODEC
com.mojang.serialization.Codec<ItemStack>: STRICT_SINGLE_ITEM_CODEC, field_51398, VALIDATED_UNCOUNTED_CODEC
com.mojang.serialization.Codec<ItemStack>: OPTIONAL_CODEC, field_49266, OPTIONAL_CODEC
com.mojang.serialization.Codec<ItemStack>: SIMPLE_ITEM_CODEC, field_49267, REGISTRY_ENTRY_CODEC
PacketCodec<RegistryByteBuf, ItemStack>: OPTIONAL_STREAM_CODEC, field_49268, OPTIONAL_PACKET_CODEC
PacketCodec<RegistryByteBuf, ItemStack>: OPTIONAL_UNTRUSTED_STREAM_CODEC, field_58141, LENGTH_PREPENDED_OPTIONAL_PACKET_CODEC
PacketCodec<RegistryByteBuf, ItemStack>: STREAM_CODEC, field_48349, PACKET_CODEC
PacketCodec<RegistryByteBuf, List<ItemStack>>: OPTIONAL_LIST_STREAM_CODEC, field_49269, OPTIONAL_LIST_PACKET_CODEC
org.slf4j.Logger: LOGGER, field_8033, LOGGER
ItemStack: EMPTY, field_8037, EMPTY
Text: DISABLED_ITEM_TOOLTIP, field_40211, DISABLED_TEXT
int: count, field_8031, count
int: popTime, field_8030, bobbingAnimationTime
Item: item, field_8038, item
MergedComponentMap: components, field_49270, components
Entity: entityRepresentation, field_24093, holder
Constructors
(RegistryEntry<Item>, int, ComponentChanges)
(RegistryEntry<Item>, int)
(ItemConvertible, int)
(ItemConvertible, int, MergedComponentMap)
(Void)
Methods
com.mojang.serialization.DataResult<ItemStack> (ItemStack): validateStrict, method_57372, validate
PacketCodec<RegistryByteBuf, ItemStack> (PacketCodec<RegistryByteBuf, ComponentChanges>): createOptionalStreamCodec, method_68810, createOptionalPacketCodec
PacketCodec<RegistryByteBuf, ItemStack> (PacketCodec<RegistryByteBuf, ItemStack>): validatedStreamCodec, method_59693, createExtraValidatingPacketCodec
Optional<TooltipData> (): getTooltipImage, method_32347, getTooltipData
ComponentMap (): getComponents, method_57353, getComponents
ComponentMap (): getPrototype, method_58658, getDefaultComponents
ComponentChanges (): getComponentsPatch, method_57380, getComponentChanges
ComponentMap (): immutableComponents, method_65359, getImmutableComponents
boolean (ComponentType<?>): hasNonDefault, method_65797, hasChangedComponent
com.mojang.serialization.DataResult<Unit> (ComponentMap): validateComponents, method_59691, validateComponents
boolean (): isEmpty, method_7960, isEmpty
boolean (FeatureSet): isItemEnabled, method_45435, isItemEnabled
ItemStack (int): split, method_7971, split
ItemStack (): copyAndClear, method_51164, copyAndEmpty
Item (): getItem, method_7909, getItem
RegistryEntry<Item> (): getItemHolder, method_41409, getRegistryEntry
boolean (TagKey<Item>): is, method_31573, isIn
boolean (Item): is, method_31574, isOf
boolean (Predicate<RegistryEntry<Item>>): is, method_41407, itemMatches
boolean (RegistryEntry<Item>): is, method_41406, itemMatches
boolean (RegistryEntryList<Item>): is, method_53187, isIn
Stream<TagKey<Item>> (): getTags, method_40133, streamTags
ActionResult (ItemUsageContext): useOn, method_7981, useOnBlock
float (BlockState): getDestroySpeed, method_7924, getMiningSpeedMultiplier
ActionResult (World, PlayerEntity, Hand): use, method_7913, use
ItemStack (World, LivingEntity): finishUsingItem, method_7910, finishUsing
ItemStack (LivingEntity, ItemStack): applyAfterUseComponentSideEffects, method_62837, applyRemainderAndCooldown
int (): getMaxStackSize, method_7914, getMaxCount
boolean (): isStackable, method_7946, isStackable
boolean (): isDamageableItem, method_7963, isDamageable
boolean (): isDamaged, method_7986, isDamaged
int (): getDamageValue, method_7919, getDamage
void (int): setDamageValue, method_7974, setDamage
int (): getMaxDamage, method_7936, getMaxDamage
boolean (): isBroken, method_61657, shouldBreak
boolean (): nextDamageWillBreak, method_63692, willBreakNextUse
void (int, ServerWorld, ServerPlayerEntity, Consumer<Item>): hurtAndBreak, method_7956, damage
int (int, ServerWorld, ServerPlayerEntity): processDurabilityChange, method_61651, calculateDamage
void (int, ServerPlayerEntity, Consumer<Item>): applyDamage, method_61652, onDurabilityChange
void (int, PlayerEntity): hurtWithoutBreaking, method_61653, damage
void (int, LivingEntity, Hand): hurtAndBreak, method_71012, damage
void (int, LivingEntity, EquipmentSlot): hurtAndBreak, method_7970, damage
ItemStack (int, ItemConvertible, LivingEntity, EquipmentSlot): hurtAndConvertOnBreak, method_60986, damage
boolean (): isBarVisible, method_31578, isItemBarVisible
int (): getBarWidth, method_31579, getItemBarStep
int (): getBarColor, method_31580, getItemBarColor
boolean (Slot, ClickType, PlayerEntity): overrideStackedOnOther, method_31575, onStackClicked
boolean (ItemStack, Slot, ClickType, PlayerEntity, StackReference): overrideOtherStackedOnMe, method_31576, onClicked
boolean (LivingEntity, LivingEntity): hurtEnemy, method_7979, postHit
void (LivingEntity, LivingEntity): postHurtEnemy, method_59979, postDamageEntity
void (World, BlockState, BlockPos, PlayerEntity): mineBlock, method_7952, postMine
boolean (BlockState): isCorrectToolForDrops, method_7951, isSuitableFor
ActionResult (PlayerEntity, LivingEntity, Hand): interactLivingEntity, method_7920, useOnEntity
ItemStack (): copy, method_7972, copy
ItemStack (int): copyWithCount, method_46651, copyWithCount
ItemStack (ItemConvertible): transmuteCopy, method_60503, withItem
ItemStack (ItemConvertible, int): transmuteCopy, method_56701, copyComponentsToNewStack
ItemStack (ItemConvertible, int): transmuteCopyIgnoreEmpty, method_56704, copyComponentsToNewStackIgnoreEmpty
boolean (ItemStack, ItemStack): matches, method_7973, areEqual
boolean (List<ItemStack>, List<ItemStack>): listMatches, method_57362, stacksEqual
boolean (ItemStack, ItemStack): isSameItem, method_7984, areItemsEqual
boolean (ItemStack, ItemStack): isSameItemSameComponents, method_31577, areItemsAndComponentsEqual
boolean (ItemStack, ItemStack, Predicate<ComponentType<?>>): matchesIgnoringComponents, method_75222, shouldSkipHandAnimationOnSwap
com.mojang.serialization.MapCodec<ItemStack> (String): lenientOptionalFieldOf, method_56702, createOptionalCodec
int (ItemStack): hashItemAndComponents, method_57355, hashCode
int (List<ItemStack>): hashStackList, method_57361, listHashCode
void (World, Entity, EquipmentSlot): inventoryTick, method_7917, inventoryTick
void (PlayerEntity, int): onCraftedBy, method_7982, onCraftByPlayer
void (World): onCraftedBySystem, method_54466, onCraftByCrafter
int (LivingEntity): getUseDuration, method_7935, getMaxUseTime
UseAction (): getUseAnimation, method_7976, getUseAction
void (World, LivingEntity, int): releaseUsing, method_7930, onStoppedUsing
void (Entity, RegistryEntry$Reference<GameEvent>): causeUseVibration, method_76590, emitUseGameEvent
boolean (): useOnRelease, method_7967, isUsedOnRelease
<T> T (ComponentType<T>, T): set, method_57379, set
<T> T (Component<T>): set, method_74887, set
<T> void (ComponentType<T>, ComponentsAccess): copyFrom, method_66697, copy
<T, U> T (ComponentType<T>, T, U, BiFunction<T, U, T>): update, method_57367, apply
<T> T (ComponentType<T>, T, UnaryOperator<T>): update, method_57368, apply
<T> T (ComponentType<? extends T>): remove, method_57381, remove
void (ComponentChanges): applyComponentsAndValidate, method_59692, applyChanges
void (ComponentChanges): applyComponents, method_57366, applyUnvalidatedChanges
void (ComponentMap): applyComponents, method_57365, applyComponentsFrom
Text (): getHoverName, method_7964, getName
Text (): getCustomName, method_65130, getCustomName
Text (): getItemName, method_63693, getItemName
Text (): getStyledHoverName, method_63015, getFormattedName
<T extends TooltipAppender> void (ComponentType<T>, Item$TooltipContext, TooltipDisplayComponent, Consumer<Text>, TooltipType): addToTooltip, method_57369, appendComponentTooltip
List<Text> (Item$TooltipContext, PlayerEntity, TooltipType): getTooltipLines, method_7950, getTooltip
void (Item$TooltipContext, TooltipDisplayComponent, PlayerEntity, TooltipType, Consumer<Text>): addDetailsToTooltip, method_67194, appendTooltip
void (ComponentType<?>, Text, TooltipDisplayComponent, Consumer<Text>): addUnitComponentToTooltip, method_75223, appendTooltipIfComponentExists
void (Consumer<Text>, TooltipDisplayComponent, PlayerEntity): addAttributeTooltips, method_57363, appendAttributeModifiersTooltip
boolean (): hasFoil, method_7958, hasGlint
Rarity (): getRarity, method_7932, getRarity
boolean (): isEnchantable, method_7923, isEnchantable
void (RegistryEntry<Enchantment>, int): enchant, method_7978, addEnchantment
boolean (): isEnchanted, method_7942, hasEnchantments
ItemEnchantmentsComponent (): getEnchantments, method_58657, getEnchantments
boolean (): isFramed, method_7961, isInFrame
void (Entity): setEntityRepresentation, method_27320, setHolder
ItemFrameEntity (): getFrame, method_7945, getFrame
Entity (): getEntityRepresentation, method_27319, getHolder
void (AttributeModifierSlot, org.apache.commons.lang3.function.TriConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier, AttributeModifiersComponent$Display>): forEachModifier, method_60617, applyAttributeModifier
void (EquipmentSlot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier>): forEachModifier, method_57354, applyAttributeModifiers
Text (): getDisplayName, method_7954, toHoverableText
SwingAnimationComponent (): getSwingAnimation, method_75218, getSwingAnimation
boolean (CachedBlockPosition): canPlaceOnBlockInAdventureMode, method_57357, canPlaceOn
boolean (CachedBlockPosition): canBreakBlockInAdventureMode, method_57373, canBreak
int (): getPopTime, method_7965, getBobbingAnimationTime
void (int): setPopTime, method_7912, setBobbingAnimationTime
int (): getCount, method_7947, getCount
void (int): setCount, method_7939, setCount
void (int): limitSize, method_58408, capCount
void (int): grow, method_7933, increment
void (int): shrink, method_7934, decrement
void (int, LivingEntity): consume, method_57008, decrementUnlessCreative
ItemStack (int, LivingEntity): consumeAndReturn, method_60504, splitUnlessCreative
void (World, LivingEntity, int): onUseTick, method_7949, usageTick
void (ItemEntity): onDestroyed, method_33262, onItemEntityDestroyed
boolean (DamageSource): canBeHurtBy, method_58407, takesDamageFrom
boolean (ItemStack): isValidRepairItem, method_61655, canRepairWith
boolean (BlockState, World, BlockPos, PlayerEntity): canDestroyBlock, method_66334, canMine
DamageSource (LivingEntity, Supplier<DamageSource>): getDamageSource, method_75220, getDamageSource
Optional (LivingEntity): lambda$getDamageSource$23, method_75224, method_75224
DamageSource (LivingEntity, RegistryEntry): lambda$getDamageSource$22, method_75221, method_75221
Optional (LivingEntity, LazyRegistryEntryReference): lambda$getDamageSource$21, method_75219, method_75219
Style (Style): lambda$getDisplayName$20, method_7966, method_7966
void (org.apache.commons.lang3.function.TriConsumer, RegistryEntry, EntityAttributeModifier): lambda$forEachModifier$19, method_70724, method_70724
void (RegistryEntry, int, ItemEnchantmentsComponent$Builder): lambda$enchant$18, method_57356, method_57356
void (org.apache.commons.lang3.mutable.MutableBoolean, Consumer, AttributeModifierSlot, PlayerEntity, RegistryEntry, EntityAttributeModifier, AttributeModifiersComponent$Display): lambda$addAttributeTooltips$17, method_57370, method_57370
Optional (ItemStack): lambda$lenientOptionalFieldOf$16, method_56700, method_56700
ItemStack (Optional): lambda$lenientOptionalFieldOf$15, method_56703, method_56703
void (LivingEntity, EquipmentSlot, Item): lambda$hurtAndBreak$14, method_56097, method_56097
void (Item): lambda$hurtWithoutBreaking$13, method_61654, method_61654
String (int, int): lambda$validateComponents$12, method_60502, method_60502
String (): lambda$validateComponents$11, method_59690, method_59690
Optional (ItemStack): lambda$static$10, method_57382, method_57382
ItemStack (Optional): lambda$static$9, method_57378, method_57378
String (ItemStack): lambda$validateStrict$8, method_57384, method_57384
ItemStack (ItemStack, Unit): lambda$validateStrict$7, method_57383, method_57383
com.mojang.serialization.Codec (): lambda$static$6, method_55066, method_55066
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$5, method_58092, method_58092
ItemStack (RegistryEntry, ComponentChanges): lambda$static$4, method_58093, method_58093
ComponentChanges (ItemStack): lambda$static$3, method_58094, method_58094
com.mojang.serialization.MapCodec (com.mojang.serialization.Codec): lambda$static$2, method_57352, method_57352
com.mojang.datafixers.kinds.App (com.mojang.serialization.codecs.RecordCodecBuilder$Instance): lambda$static$1, method_57371, method_57371
ComponentChanges (ItemStack): lambda$static$0, method_57385, method_57385