History - net.minecraft.world.item.ItemStack

1.21.3

Names

cxp

net.minecraft.world.item.ItemStack

net.minecraft.class_1799

net.minecraft.unmapped.C_sddaxwyk

net.minecraft.item.ItemStack

net.minecraft.item.ItemStack

net.minecraft.src.C_1391_

net.minecraft.world.item.ItemStack

Fields

com.mojang.serialization.Codec<ItemStack>: a, CODEC, field_24671, f_tqvryqzt, CODEC, CODEC, f_41582_

com.mojang.serialization.Codec<ItemStack>: b, SINGLE_ITEM_CODEC, field_49747, f_aasxeeyb, UNCOUNTED_CODEC, f_302992_

com.mojang.serialization.Codec<ItemStack>: c, STRICT_CODEC, field_51397, f_gwlvilfo, VALIDATED_CODEC, f_315780_

com.mojang.serialization.Codec<ItemStack>: d, STRICT_SINGLE_ITEM_CODEC, field_51398, f_lpaemjik, VALIDATED_UNCOUNTED_CODEC, f_316270_

com.mojang.serialization.Codec<ItemStack>: e, OPTIONAL_CODEC, field_49266, f_duuhtyre, OPTIONAL_CODEC, f_316315_

com.mojang.serialization.Codec<ItemStack>: f, SIMPLE_ITEM_CODEC, field_49267, f_rrbqzuyq, REGISTRY_ENTRY_CODEC, SIMPLE_ITEM_CODEC, f_315943_

StreamCodec<RegistryFriendlyByteBuf, ItemStack>: g, OPTIONAL_STREAM_CODEC, field_49268, f_iboyubuh, OPTIONAL_PACKET_CODEC, OPTIONAL_PACKET_CODEC, f_314979_

StreamCodec<RegistryFriendlyByteBuf, ItemStack>: h, STREAM_CODEC, field_48349, f_bnghiwgu, PACKET_CODEC, PACKET_CODEC, f_315801_

StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>>: i, OPTIONAL_LIST_STREAM_CODEC, field_49269, f_eculldrq, OPTIONAL_LIST_PACKET_CODEC, f_315592_

org.slf4j.Logger: k, LOGGER, field_8033, f_ohakxxel, LOGGER, LOGGER, f_41585_

ItemStack: j, EMPTY, field_8037, f_lrxqoedj, EMPTY, EMPTY, f_41583_

Component: l, DISABLED_ITEM_TOOLTIP, field_40211, f_ygsunlnh, DISABLED_TEXT, DISABLED, f_243862_

int: m, count, field_8031, f_llcklqth, count, count, f_41587_

int: n, popTime, field_8030, f_lxaedfnb, bobbingAnimationTime, cooldown, f_41588_

Item: o, item, field_8038, f_eqmyksbs, item, item, f_41589_

PatchedDataComponentMap: p, components, field_49270, f_bgqyysyj, components, components, f_315342_

Entity: q, entityRepresentation, field_24093, f_zbdizxtz, holder, holder, f_41592_

Constructors

(ItemLike)

(Holder<Item>)

(Holder<Item>, int, DataComponentPatch)

(Holder<Item>, int)

(ItemLike, int)

(ItemLike, int, PatchedDataComponentMap)

(Void)

Methods

com.mojang.serialization.DataResult<ItemStack> (ItemStack): c, validateStrict, method_57372, m_olrjfwfo, validate, validate, m_323584_

StreamCodec<RegistryFriendlyByteBuf, ItemStack> (StreamCodec<RegistryFriendlyByteBuf, ItemStack>): a, validatedStreamCodec, method_59693, m_iewylrep, createExtraValidatingPacketCodec, m_iewylrep, m_319263_

Optional<TooltipComponent> (): b, getTooltipImage, method_32347, m_mwcbjbmu, getTooltipData, getTooltipData, m_150921_

DataComponentMap (): a, getComponents, method_57353, m_eutadtlw, getComponents, getComponents, m_318732_

void (): c, clearComponents, method_61656, m_fnjjwwan, clearComponentChanges, m_355971_

DataComponentMap (): d, getPrototype, method_58658, m_ejzzxfrl, getDefaultComponents, getItemComponents, m_322741_

DataComponentPatch (): e, getComponentsPatch, method_57380, m_igidwirs, getComponentChanges, getComponentPatch, m_324277_

com.mojang.serialization.DataResult<Unit> (DataComponentMap): a, validateComponents, method_59691, m_yaszceoi, validateComponents, validateComponents, m_320698_

Optional<ItemStack> (HolderLookup$Provider, Tag): a, parse, method_57360, m_izgziaft, fromNbt, fromNbtOptional, m_323951_

ItemStack (HolderLookup$Provider, CompoundTag): a, parseOptional, method_57359, m_dyvmnknh, fromNbtOrEmpty, fromNbt, m_318937_

boolean (): f, isEmpty, method_7960, m_vprylruv, isEmpty, isEmpty, m_41619_

boolean (FeatureFlagSet): a, isItemEnabled, method_45435, m_eyzvudzj, isItemEnabled, isEnabled, m_246617_

ItemStack (int): a, split, method_7971, m_cgmsskmm, split, split, m_41620_

ItemStack (): g, copyAndClear, method_51164, m_ehlafaks, copyAndEmpty, copyAndClear, m_278832_

Item (): h, getItem, method_7909, m_qxfxfsuy, getItem, getItem, m_41720_

Holder<Item> (): i, getItemHolder, method_41409, m_pqebapbo, getRegistryEntry, getHolder, m_220173_

boolean (TagKey<Item>): a, is, method_31573, m_xbbrlqhc, isIn, isIn, m_204117_

boolean (Item): a, is, method_31574, m_ezqoxeyg, isOf, isOf, m_150930_

boolean (Predicate<Holder<Item>>): a, is, method_41407, m_kshgvahz, itemMatches, matches, m_220167_

boolean (Holder<Item>): a, is, method_41406, m_sxworkis, itemMatches, matches, m_220165_

boolean (HolderSet<Item>): a, is, method_53187, m_gcouiubw, isIn, isIn, m_295139_

Stream<TagKey<Item>> (): j, getTags, method_40133, m_wnspogky, streamTags, streamTags, m_204131_

InteractionResult (UseOnContext): a, useOn, method_7981, m_bqtrkfmc, useOnBlock, useOnBlock, m_41661_

float (BlockState): a, getDestroySpeed, method_7924, m_hawykozc, getMiningSpeedMultiplier, getMiningSpeedMultiplier, m_41691_

InteractionResult (Level, Player, InteractionHand): a, use, method_7913, m_gtdctvvz, use, use, m_41682_

ItemStack (Level, LivingEntity): a, finishUsingItem, method_7910, m_jqebbfhj, finishUsing, finishUsing, m_41671_

ItemStack (LivingEntity, ItemStack): a, applyAfterUseComponentSideEffects, method_62837, m_pjciqabm, applyRemainderAndCooldown, m_pjciqabm, m_352032_

Tag (HolderLookup$Provider, Tag): b, save, method_57376, m_nyilezsd, toNbt, encode, m_321167_

Tag (HolderLookup$Provider): a, save, method_57358, m_fuopwkpz, toNbt, encode, m_41739_

Tag (HolderLookup$Provider): b, saveOptional, method_57375, m_fgqlptaw, toNbtAllowEmpty, getEncoded, m_324153_

int (): k, getMaxStackSize, method_7914, m_rmdiknvo, getMaxCount, getMaxCount, m_41741_

boolean (): l, isStackable, method_7946, m_sjztniec, isStackable, isStackable, m_41753_

boolean (): m, isDamageableItem, method_7963, m_iculdxhv, isDamageable, isDamageable, m_41763_

boolean (): n, isDamaged, method_7986, m_nosilizp, isDamaged, isDamaged, m_41768_

int (): o, getDamageValue, method_7919, m_arqkxkec, getDamage, getDamage, m_41773_

void (int): b, setDamageValue, method_7974, m_rghjmiwl, setDamage, setDamage, m_41721_

int (): p, getMaxDamage, method_7936, m_fdjdvcpt, getMaxDamage, getMaxDamage, m_41776_

boolean (): q, isBroken, method_61657, m_staooslz, shouldBreak, m_355414_

boolean (): r, nextDamageWillBreak, method_63692, m_abowndct, willBreakNextUse, m_356168_

void (int, ServerLevel, ServerPlayer, Consumer<Item>): a, hurtAndBreak, method_7956, m_hskgqwrk, damage, damageEquipment, m_220157_

int (int, ServerLevel, ServerPlayer): a, processDurabilityChange, method_61651, m_gbuhgijv, calculateDamage, m_gbuhgijv, m_357062_

void (int, ServerPlayer, Consumer<Item>): a, applyDamage, method_61652, m_zbrzqwly, onDurabilityChange, m_zbrzqwly, m_354054_

void (int, Player): a, hurtWithoutBreaking, method_61653, m_ffurchrl, damage, m_ffurchrl, m_357531_

void (int, LivingEntity, EquipmentSlot): a, hurtAndBreak, method_7970, m_rcukuoag, damage, damageEquipment, m_41622_

ItemStack (int, ItemLike, LivingEntity, EquipmentSlot): a, hurtAndConvertOnBreak, method_60986, m_caefvdpe, damage, damageEquipment, m_340236_

boolean (): s, isBarVisible, method_31578, m_rvfytoek, isItemBarVisible, isItemBarVisible, m_150947_

int (): t, getBarWidth, method_31579, m_pjqbesil, getItemBarStep, getItemBarStep, m_150948_

int (): u, getBarColor, method_31580, m_sfmosozi, getItemBarColor, getItemBarColor, m_150949_

boolean (Slot, ClickAction, Player): a, overrideStackedOnOther, method_31575, m_hmrpegvi, onStackClicked, onClickedOnOther, m_150926_

boolean (ItemStack, Slot, ClickAction, Player, SlotAccess): a, overrideOtherStackedOnMe, method_31576, m_uhghycli, onClicked, onClicked, m_150932_

boolean (LivingEntity, LivingEntity): a, hurtEnemy, method_7979, m_poxxatoa, postHit, postHit, m_41640_

void (LivingEntity, LivingEntity): b, postHurtEnemy, method_59979, m_othdzzkw, postDamageEntity, postDamageEntity, m_339261_

void (Level, BlockState, BlockPos, Player): a, mineBlock, method_7952, m_emygxjdg, postMine, postMine, m_41686_

boolean (BlockState): b, isCorrectToolForDrops, method_7951, m_msofzvly, isSuitableFor, isCorrectForDrops, m_41735_

InteractionResult (Player, LivingEntity, InteractionHand): a, interactLivingEntity, method_7920, m_imaclehj, useOnEntity, useOnEntity, m_41647_

ItemStack (): v, copy, method_7972, m_jowurkjh, copy, copy, m_41777_

ItemStack (int): c, copyWithCount, method_46651, m_kguduvdp, copyWithCount, copyWithCount, m_255036_

ItemStack (ItemLike): a, transmuteCopy, method_60503, m_cgmunnul, withItem, copyComponentsToNewStack, m_338455_

ItemStack (ItemLike, int): a, transmuteCopy, method_56701, m_igbhhnoy, copyComponentsToNewStack, copyComponentsToNewStack, m_319323_

ItemStack (ItemLike, int): b, transmuteCopyIgnoreEmpty, method_56704, m_zzjqqsgn, copyComponentsToNewStackIgnoreEmpty, copyComponentsToNewStackIgnoreEmpty, m_320013_

boolean (ItemStack, ItemStack): a, matches, method_7973, m_tgkzgfpm, areEqual, areEqual, m_41728_

boolean (List<ItemStack>, List<ItemStack>): a, listMatches, method_57362, m_skenhwqy, stacksEqual, areEqual, m_319597_

boolean (ItemStack, ItemStack): b, isSameItem, method_7984, m_mhrovmoq, areItemsEqual, itemsMatch, m_41656_

boolean (ItemStack, ItemStack): c, isSameItemSameComponents, method_31577, m_xdahsubv, areItemsAndComponentsEqual, itemsAndComponentsMatch, m_322370_

com.mojang.serialization.MapCodec<ItemStack> (String): a, lenientOptionalFieldOf, method_56702, m_nphkgyhm, createOptionalCodec, m_323240_

int (ItemStack): a, hashItemAndComponents, method_57355, m_tqkhmqrq, hashCode, hashCode, m_322198_

int (List<ItemStack>): a, hashStackList, method_57361, m_imgzslzn, listHashCode, listHashCode, m_318747_

void (Level, Entity, int, boolean): a, inventoryTick, method_7917, m_cwjcossc, inventoryTick, inventoryTick, m_41666_

void (Level, Player, int): a, onCraftedBy, method_7982, m_zpjrlkav, onCraftByPlayer, onCraftByPlayer, m_41678_

void (Level): a, onCraftedBySystem, method_54466, m_umudukuf, onCraftByCrafter, onCraft, m_305085_

int (LivingEntity): a, getUseDuration, method_7935, m_fggiijyg, getMaxUseTime, getUseTicks, m_41779_

ItemUseAnimation (): w, getUseAnimation, method_7976, m_dfvhukte, getUseAction, getUseAction, m_41780_

void (Level, LivingEntity, int): a, releaseUsing, method_7930, m_wjnupjdh, onStoppedUsing, onStoppedUsing, m_41674_

boolean (): x, useOnRelease, method_7967, m_biphgkrd, isUsedOnRelease, isUsedOnRelease, m_41781_

<T> T (DataComponentType<? super T>, T): b, set, method_57379, m_zakagwqa, set, set, m_322496_

<T, U> T (DataComponentType<T>, T, U, BiFunction<T, U, T>): a, update, method_57367, m_iaantrnc, apply, apply, m_324919_

<T> T (DataComponentType<T>, T, UnaryOperator<T>): a, update, method_57368, m_kamdhzie, apply, apply, m_322591_

<T> T (DataComponentType<? extends T>): c, remove, method_57381, m_kdmqavat, remove, remove, m_319322_

void (DataComponentPatch): a, applyComponentsAndValidate, method_59692, m_tdkbrlov, applyChanges, applyPatchAndValidate, m_320623_

void (DataComponentPatch): b, applyComponents, method_57366, m_qxooancw, applyUnvalidatedChanges, applyPatch, m_319238_

void (DataComponentMap): b, applyComponents, method_57365, m_vchnqfkp, applyComponentsFrom, applyComponents, m_323474_

Component (): y, getHoverName, method_7964, m_xvzvtufo, getName, getName, m_41786_

Component (): z, getItemName, method_63693, m_ckupoleb, getItemName, m_357142_

Component (): A, getStyledHoverName, method_63015, m_lulbgdsa, getFormattedName, m_353917_

<T extends TooltipProvider> void (DataComponentType<T>, Item$TooltipContext, Consumer<Component>, TooltipFlag): a, addToTooltip, method_57369, m_hdopgosb, appendTooltip, appendTooltip, m_319928_

List<Component> (Item$TooltipContext, Player, TooltipFlag): a, getTooltipLines, method_7950, m_ywdqmcbk, getTooltip, getTooltip, m_41651_

void (Consumer<Component>, Player): a, addAttributeTooltips, method_57363, m_phvcusub, appendAttributeModifiersTooltip, appendModifierTooltips, m_322901_

void (Consumer<Component>, Player, Holder<Attribute>, AttributeModifier): a, addModifierTooltip, method_57364, m_aedabdbt, appendAttributeModifierTooltip, appendModifierTooltip, m_322829_

boolean (): B, hasFoil, method_7958, m_vncsdaoo, hasGlint, hasGlint, m_41790_

Rarity (): C, getRarity, method_7932, m_yrbtnzbt, getRarity, getRarity, m_41791_

boolean (): D, isEnchantable, method_7923, m_gwzgwsrv, isEnchantable, isEnchantable, m_41792_

void (Holder<Enchantment>, int): a, enchant, method_7978, m_nisvbeaw, addEnchantment, applyEnchantment, m_41663_

boolean (): E, isEnchanted, method_7942, m_zszkcovn, hasEnchantments, hasEnchantments, m_41793_

ItemEnchantments (): F, getEnchantments, method_58657, m_wjqnxase, getEnchantments, getEnchantments, m_319737_

boolean (): G, isFramed, method_7961, m_tcgbrtym, isInFrame, isInFrame, m_41794_

void (Entity): a, setEntityRepresentation, method_27320, m_xqyyeqdc, setHolder, setHolder, m_41636_

ItemFrame (): H, getFrame, method_7945, m_sqtvrdfj, getFrame, getFrame, m_41795_

Entity (): I, getEntityRepresentation, method_27319, m_yawcimjo, getHolder, getEntityHolder, m_41609_

void (EquipmentSlotGroup, BiConsumer<Holder<Attribute>, AttributeModifier>): a, forEachModifier, method_60617, m_bhuguvni, applyAttributeModifier, m_339103_

void (EquipmentSlot, BiConsumer<Holder<Attribute>, AttributeModifier>): a, forEachModifier, method_57354, m_saymlnod, applyAttributeModifiers, m_321237_

Component (): J, getDisplayName, method_7954, m_ihhujymf, toHoverableText, toHoverableText, m_41611_

boolean (BlockInWorld): a, canPlaceOnBlockInAdventureMode, method_57357, m_qiozuhii, canPlaceOn, canPlaceOnInAdventureMode, m_321400_

boolean (BlockInWorld): b, canBreakBlockInAdventureMode, method_57373, m_cpmzxurz, canBreak, canBreakInAdventureMode, m_323082_

int (): K, getPopTime, method_7965, m_pwfafzwz, getBobbingAnimationTime, getCooldown, m_41612_

void (int): d, setPopTime, method_7912, m_utrmkjnp, setBobbingAnimationTime, setCooldown, m_41754_

int (): L, getCount, method_7947, m_uglewown, getCount, getCount, m_41613_

void (int): e, setCount, method_7939, m_bpcuczsh, setCount, setCount, m_41764_

void (int): f, limitSize, method_58408, m_uzwjgkgy, capCount, m_uzwjgkgy, m_324521_

void (int): g, grow, method_7933, m_nivkbhlq, increment, increment, m_41769_

void (int): h, shrink, method_7934, m_whunqrso, decrement, decrement, m_41774_

void (int, LivingEntity): a, consume, method_57008, m_tyuugrfg, decrementUnlessCreative, consume, m_321439_

ItemStack (int, LivingEntity): b, consumeAndReturn, method_60504, m_tobuehwl, splitUnlessCreative, copyAndConsume, m_338460_

void (Level, LivingEntity, int): b, onUseTick, method_7949, m_iadyttua, usageTick, usageTick, m_41731_

void (ItemEntity): a, onDestroyed, method_33262, m_oszmcroz, onItemEntityDestroyed, onItemEntityDestroyed, m_150924_

SoundEvent (): M, getBreakingSound, method_57351, m_kmktysli, getBreakSound, getBreakSound, m_321057_

boolean (DamageSource): a, canBeHurtBy, method_58407, m_yprgpdac, takesDamageFrom, takesDamageFrom, m_325012_

boolean (ItemStack): b, isValidRepairItem, method_61655, m_dfjlwstf, canRepairWith, m_dfjlwstf, m_357103_