net.minecraft.world.item

public final class ItemStack

implements DataComponentHolder

cuq
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.ItemNamedBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Holder<Item>>
a
ITEM_NON_AIR_CODEC
field_47312
f_qqkxjbjo
ITEM_CODEC
NON_AIR_ITEM_CODEC
f_303113_
public static final com.mojang.serialization.Codec<ItemStack>
b
CODEC
field_24671
f_tqvryqzt
CODEC
CODEC
f_41582_
public static final com.mojang.serialization.Codec<ItemStack>
c
SINGLE_ITEM_CODEC
field_49747
f_aasxeeyb
UNCOUNTED_CODEC
f_302992_
public static final com.mojang.serialization.Codec<ItemStack>
d
STRICT_CODEC
field_51397
f_gwlvilfo
VALIDATED_CODEC
f_315780_
public static final com.mojang.serialization.Codec<ItemStack>
e
STRICT_SINGLE_ITEM_CODEC
field_51398
f_lpaemjik
VALIDATED_UNCOUNTED_CODEC
f_316270_
public static final com.mojang.serialization.Codec<ItemStack>
f
OPTIONAL_CODEC
field_49266
f_duuhtyre
OPTIONAL_CODEC
f_316315_
public static final com.mojang.serialization.Codec<ItemStack>
g
SIMPLE_ITEM_CODEC
field_49267
f_rrbqzuyq
REGISTRY_ENTRY_CODEC
SIMPLE_ITEM_CODEC
f_315943_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemStack>
h
OPTIONAL_STREAM_CODEC
field_49268
f_iboyubuh
OPTIONAL_PACKET_CODEC
OPTIONAL_PACKET_CODEC
f_314979_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemStack>
i
STREAM_CODEC
field_48349
f_bnghiwgu
PACKET_CODEC
PACKET_CODEC
f_315801_
public static final StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>>
j
OPTIONAL_LIST_STREAM_CODEC
field_49269
f_eculldrq
OPTIONAL_LIST_PACKET_CODEC
f_315592_
public static final StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>>
k
LIST_STREAM_CODEC
field_48350
f_hnyuumqo
LIST_PACKET_CODEC
f_314960_
private static final org.slf4j.Logger
m
LOGGER
field_8033
f_ohakxxel
LOGGER
LOGGER
f_41585_
public static final ItemStack
l
EMPTY
field_8037
f_lrxqoedj
EMPTY
EMPTY
f_41583_
private static final Component
n
DISABLED_ITEM_TOOLTIP
field_40211
f_ygsunlnh
DISABLED_TEXT
DISABLED
f_243862_
private int
o
count
field_8031
f_llcklqth
count
count
f_41587_
private int
p
popTime
field_8030
f_lxaedfnb
bobbingAnimationTime
cooldown
f_41588_
private final Item
q
item
field_8038
f_eqmyksbs
item
item
f_41589_
final PatchedDataComponentMap
r
components
field_49270
f_bgqyysyj
components
components
f_315342_
private Entity
s
entityRepresentation
field_24093
f_zbdizxtz
holder
holder
f_41592_

Constructor summary

ModifierConstructor
public (ItemLike item)
public (Holder<Item> entry)
public (Holder<Item> item, int count, DataComponentPatch changes)
public (Holder<Item> itemEntry, int count)
public (ItemLike item, int count)
private (ItemLike item, int count, PatchedDataComponentMap components)
private (Void v)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<ItemStack>
b(cuq arg0)
validateStrict(ItemStack arg0)
method_57372(class_1799 arg0)
m_olrjfwfo(C_sddaxwyk arg0)
validate(ItemStack stack)
m_olrjfwfo(ItemStack stack)
m_323584_(C_1391_ p_332181_)
public static StreamCodec<RegistryFriendlyByteBuf, ItemStack>
a(zn<xa, cuq> arg0)
validatedStreamCodec(StreamCodec<RegistryFriendlyByteBuf, ItemStack> arg0)
method_59693(class_9139<class_9129, class_1799> arg0)
m_iewylrep(C_qsrmwluu<C_bngyzsts, C_sddaxwyk> arg0)
createExtraValidatingPacketCodec(PacketCodec<RegistryByteBuf, ItemStack> basePacketCodec)
m_iewylrep(PacketCodec<RegistryByteBuf, ItemStack> packetCodec)
m_319263_(C_313866_<C_313350_, C_1391_> p_332790_)
public Optional<TooltipComponent>
b()
getTooltipImage()
method_32347()
m_mwcbjbmu()
getTooltipData()
getTooltipData()
m_150921_()
public DataComponentMap
a()
getComponents()
method_57353()
m_eutadtlw()
getComponents()
getComponents()
m_318732_()
public DataComponentMap
c()
getPrototype()
method_58658()
m_ejzzxfrl()
getDefaultComponents()
m_322741_()
public DataComponentPatch
d()
getComponentsPatch()
method_57380()
m_igidwirs()
getComponentChanges()
getComponentPatch()
m_324277_()
public static com.mojang.serialization.DataResult<Unit>
a(ki arg0)
validateComponents(DataComponentMap arg0)
method_59691(class_9323 arg0)
m_yaszceoi(C_kouhnfig arg0)
validateComponents(ComponentMap components)
m_320698_(C_313470_ p_336343_)
public static Optional<ItemStack>
a(jk$a arg0, vp arg1)
parse(HolderLookup$Provider arg0, Tag arg1)
method_57360(class_7225$class_7874 arg0, class_2520 arg1)
m_izgziaft(C_vtbxyypo$C_etmlgbig arg0, C_oivssbvb arg1)
fromNbt(RegistryWrapper$WrapperLookup registries, NbtElement nbt)
fromNbtOptional(HolderLookup$Provider lookupProvider, NbtElement nbt)
m_323951_(C_213466_$C_254607_ p_332204_, C_4950_ p_336056_)
public static ItemStack
a(jk$a arg0, us arg1)
parseOptional(HolderLookup$Provider arg0, CompoundTag arg1)
method_57359(class_7225$class_7874 arg0, class_2487 arg1)
m_dyvmnknh(C_vtbxyypo$C_etmlgbig arg0, C_hhlwcnih arg1)
fromNbtOrEmpty(RegistryWrapper$WrapperLookup registries, NbtCompound nbt)
fromNbt(HolderLookup$Provider lookupProvider, NbtCompound nbt)
m_318937_(C_213466_$C_254607_ p_333870_, C_4917_ p_328391_)
public boolean
e()
isEmpty()
method_7960()
m_vprylruv()
isEmpty()
isEmpty()
m_41619_()
public boolean
a(cpm arg0)
isItemEnabled(FeatureFlagSet arg0)
method_45435(class_7699 arg0)
m_eyzvudzj(C_czxxrbcp arg0)
isItemEnabled(FeatureSet enabledFeatures)
isEnabled(FeatureFlagBitSet enabledFeatures)
m_246617_(C_243488_ arg0)
public ItemStack
a(int arg0)
split(int arg0)
method_7971(int arg0)
m_cgmsskmm(int arg0)
split(int amount)
split(int amount)
m_41620_(int arg0)
public ItemStack
f()
copyAndClear()
method_51164()
m_ehlafaks()
copyAndEmpty()
copyAndClear()
m_278832_()
public Item
g()
getItem()
method_7909()
m_qxfxfsuy()
getItem()
getItem()
m_41720_()
public Holder<Item>
h()
getItemHolder()
method_41409()
m_pqebapbo()
getRegistryEntry()
getHolder()
m_220173_()
public boolean
a(axf<cul> arg0)
is(TagKey<Item> arg0)
method_31573(class_6862<class_1792> arg0)
m_xbbrlqhc(C_ednuhnnn<C_vorddnax> arg0)
isIn(TagKey<Item> tag)
isIn(TagKey<Item> tag)
m_204117_(C_203208_<C_1381_> arg0)
public boolean
a(cul arg0)
is(Item arg0)
method_31574(class_1792 arg0)
m_ezqoxeyg(C_vorddnax arg0)
isOf(Item item)
isOf(Item item)
m_150930_(C_1381_ arg0)
public boolean
a(Predicate<ji<cul>> arg0)
is(Predicate<Holder<Item>> arg0)
method_41407(Predicate<class_6880<class_1792>> arg0)
m_kshgvahz(Predicate<C_cjzoxshv<C_vorddnax>> arg0)
itemMatches(Predicate<RegistryEntry<Item>> predicate)
matches(Predicate<Holder<Item>> predicate)
m_220167_(Predicate<C_203228_<C_1381_>> arg0)
public boolean
a(ji<cul> arg0)
is(Holder<Item> arg0)
method_41406(class_6880<class_1792> arg0)
m_sxworkis(C_cjzoxshv<C_vorddnax> arg0)
itemMatches(RegistryEntry<Item> itemEntry)
matches(Holder<Item> item)
m_220165_(C_203228_<C_1381_> arg0)
public boolean
a(jm<cul> arg0)
is(HolderSet<Item> arg0)
method_53187(class_6885<class_1792> arg0)
m_gcouiubw(C_odfnijdo<C_vorddnax> arg0)
isIn(RegistryEntryList<Item> registryEntryList)
isIn(HolderSet<Item> set)
m_295139_(C_203233_<C_1381_> arg0)
public Stream<TagKey<Item>>
i()
getTags()
method_40133()
m_wnspogky()
streamTags()
streamTags()
m_204131_()
public InteractionResult
a(cyd arg0)
useOn(UseOnContext arg0)
method_7981(class_1838 arg0)
m_bqtrkfmc(C_yyklzime arg0)
useOnBlock(ItemUsageContext context)
useOnBlock(ItemUsageContext context)
m_41661_(C_1450_ arg0)
public float
a(dsd arg0)
getDestroySpeed(BlockState arg0)
method_7924(class_2680 arg0)
m_hawykozc(C_txtbiemp arg0)
getMiningSpeedMultiplier(BlockState state)
getMiningSpeedMultiplier(BlockState state)
m_41691_(C_2064_ arg0)
public InteractionResultHolder<ItemStack>
a(dbz arg0, cmy arg1, bqu arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7913(class_1937 arg0, class_1657 arg1, class_1268 arg2)
m_gtdctvvz(C_cdctfzbn arg0, C_jzrpycqo arg1, C_laxmzoqs arg2)
use(World world, PlayerEntity user, Hand hand)
use(World world, PlayerEntity user, Hand hand)
m_41682_(C_1596_ p_41684_, C_1141_ p_41685_, C_470_ arg2)
public ItemStack
a(dbz arg0, btq arg1)
finishUsingItem(Level arg0, LivingEntity arg1)
method_7910(class_1937 arg0, class_1309 arg1)
m_jqebbfhj(C_cdctfzbn arg0, C_usxaxydn arg1)
finishUsing(World world, LivingEntity user)
finishUsing(World world, LivingEntity user)
m_41671_(C_1596_ p_41673_, C_524_ arg1)
public Tag
b(jk$a arg0, vp arg1)
save(HolderLookup$Provider arg0, Tag arg1)
method_57376(class_7225$class_7874 arg0, class_2520 arg1)
m_nyilezsd(C_vtbxyypo$C_etmlgbig arg0, C_oivssbvb arg1)
encode(RegistryWrapper$WrapperLookup registries, NbtElement prefix)
encode(HolderLookup$Provider arg0, NbtElement arg1)
m_321167_(C_213466_$C_254607_ p_332574_, C_4950_ arg1)
public Tag
a(jk$a arg0)
save(HolderLookup$Provider arg0)
method_57358(class_7225$class_7874 arg0)
m_fuopwkpz(C_vtbxyypo$C_etmlgbig arg0)
encode(RegistryWrapper$WrapperLookup registries)
encode(HolderLookup$Provider arg0)
m_41739_(C_213466_$C_254607_ arg0)
public Tag
b(jk$a arg0)
saveOptional(HolderLookup$Provider arg0)
method_57375(class_7225$class_7874 arg0)
m_fgqlptaw(C_vtbxyypo$C_etmlgbig arg0)
encodeAllowEmpty(RegistryWrapper$WrapperLookup registries)
getEncoded(HolderLookup$Provider arg0)
m_324153_(C_213466_$C_254607_ arg0)
public int
j()
getMaxStackSize()
method_7914()
m_rmdiknvo()
getMaxCount()
getMaxCount()
m_41741_()
public boolean
k()
isStackable()
method_7946()
m_sjztniec()
isStackable()
isStackable()
m_41753_()
public boolean
l()
isDamageableItem()
method_7963()
m_iculdxhv()
isDamageable()
isDamageable()
m_41763_()
public boolean
m()
isDamaged()
method_7986()
m_nosilizp()
isDamaged()
isDamaged()
m_41768_()
public int
n()
getDamageValue()
method_7919()
m_arqkxkec()
getDamage()
getDamage()
m_41773_()
public void
b(int arg0)
setDamageValue(int arg0)
method_7974(int arg0)
m_rghjmiwl(int arg0)
setDamage(int damage)
setDamage(int damage)
m_41721_(int arg0)
public int
o()
getMaxDamage()
method_7936()
m_fdjdvcpt()
getMaxDamage()
getMaxDamage()
m_41776_()
public void
a(int arg0, azh arg1, arg arg2, Runnable arg3)
hurtAndBreak(int arg0, RandomSource arg1, ServerPlayer arg2, Runnable arg3)
method_7956(int arg0, class_5819 arg1, class_3222 arg2, Runnable arg3)
m_lwxbsyxh(int arg0, C_rlomrsco arg1, C_mxrobsgg arg2, Runnable arg3)
damage(int amount, Random random, ServerPlayerEntity player, Runnable breakCallback)
m_lwxbsyxh(int arg0, RandomGenerator random, ServerPlayerEntity player, Runnable arg3)
m_220157_(int p_220159_, C_212974_ p_220160_, C_13_ p_331215_, Runnable arg3)
public void
a(int arg0, btq arg1, btc arg2)
hurtAndBreak(int arg0, LivingEntity arg1, EquipmentSlot arg2)
method_7970(int arg0, class_1309 arg1, class_1304 arg2)
m_rcukuoag(int arg0, C_usxaxydn arg1, C_yuycoehb arg2)
damage(int amount, LivingEntity entity, EquipmentSlot slot)
m_rcukuoag(int arg0, LivingEntity entity, EquipmentSlot slot)
m_41622_(int p_41624_, C_524_ p_335324_, C_516_ arg2)
public boolean
p()
isBarVisible()
method_31578()
m_rvfytoek()
isItemBarVisible()
isItemBarVisible()
m_150947_()
public int
q()
getBarWidth()
method_31579()
m_pjqbesil()
getItemBarStep()
getItemBarStep()
m_150948_()
public int
r()
getBarColor()
method_31580()
m_sfmosozi()
getItemBarColor()
getItemBarColor()
m_150949_()
public boolean
a(crq arg0, cqd arg1, cmy arg2)
overrideStackedOnOther(Slot arg0, ClickAction arg1, Player arg2)
method_31575(class_1735 arg0, class_5536 arg1, class_1657 arg2)
m_hmrpegvi(C_nhvqfffd arg0, C_qcuteihm arg1, C_jzrpycqo arg2)
onStackClicked(Slot slot, ClickType clickType, PlayerEntity player)
onClickedOnOther(Slot otherSlot, ClickType clickType, PlayerEntity player)
m_150926_(C_1305_ p_150928_, C_141163_ p_150929_, C_1141_ arg2)
public boolean
a(cuq arg0, crq arg1, cqd arg2, cmy arg3, bui arg4)
overrideOtherStackedOnMe(ItemStack arg0, Slot arg1, ClickAction arg2, Player arg3, SlotAccess arg4)
method_31576(class_1799 arg0, class_1735 arg1, class_5536 arg2, class_1657 arg3, class_5630 arg4)
m_uhghycli(C_sddaxwyk arg0, C_nhvqfffd arg1, C_qcuteihm arg2, C_jzrpycqo arg3, C_xkkpnyvk arg4)
onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference)
onClicked(ItemStack otherStack, Slot thisSlot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference)
m_150932_(C_1391_ p_150934_, C_1305_ p_150935_, C_141163_ p_150936_, C_1141_ p_150937_, C_141073_ arg4)
public void
a(btq arg0, cmy arg1)
hurtEnemy(LivingEntity arg0, Player arg1)
method_7979(class_1309 arg0, class_1657 arg1)
m_poxxatoa(C_usxaxydn arg0, C_jzrpycqo arg1)
postHit(LivingEntity target, PlayerEntity player)
postHit(LivingEntity target, PlayerEntity attacker)
m_41640_(C_524_ p_41642_, C_1141_ arg1)
public void
a(dbz arg0, dsd arg1, iz arg2, cmy arg3)
mineBlock(Level arg0, BlockState arg1, BlockPos arg2, Player arg3)
method_7952(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1657 arg3)
m_emygxjdg(C_cdctfzbn arg0, C_txtbiemp arg1, C_hynzadkk arg2, C_jzrpycqo arg3)
postMine(World world, BlockState state, BlockPos pos, PlayerEntity miner)
postMine(World world, BlockState state, BlockPos pos, PlayerEntity miner)
m_41686_(C_1596_ p_41688_, C_2064_ p_41689_, C_4675_ p_41690_, C_1141_ arg3)
public boolean
b(dsd arg0)
isCorrectToolForDrops(BlockState arg0)
method_7951(class_2680 arg0)
m_msofzvly(C_txtbiemp arg0)
isSuitableFor(BlockState state)
isSuitableFor(BlockState state)
m_41735_(C_2064_ arg0)
public InteractionResult
a(cmy arg0, btq arg1, bqu arg2)
interactLivingEntity(Player arg0, LivingEntity arg1, InteractionHand arg2)
method_7920(class_1657 arg0, class_1309 arg1, class_1268 arg2)
m_imaclehj(C_jzrpycqo arg0, C_usxaxydn arg1, C_laxmzoqs arg2)
useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)
useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)
m_41647_(C_1141_ p_41649_, C_524_ p_41650_, C_470_ arg2)
public ItemStack
s()
copy()
method_7972()
m_jowurkjh()
copy()
copy()
m_41777_()
public ItemStack
c(int arg0)
copyWithCount(int arg0)
method_46651(int arg0)
m_kguduvdp(int arg0)
copyWithCount(int count)
copyWithCount(int count)
m_255036_(int arg0)
public ItemStack
a(dby arg0, int arg1)
transmuteCopy(ItemLike arg0, int arg1)
method_56701(class_1935 arg0, int arg1)
m_yqsxbejh(C_gmbqjnle arg0, int arg1)
copyComponentsToNewStack(ItemConvertible item, int count)
copyComponentsToNewStack(ItemConvertible item, int count)
m_319323_(C_1595_ p_334821_, int arg1)
public ItemStack
b(dby arg0, int arg1)
transmuteCopyIgnoreEmpty(ItemLike arg0, int arg1)
method_56704(class_1935 arg0, int arg1)
m_zzjqqsgn(C_gmbqjnle arg0, int arg1)
copyComponentsToNewStackIgnoreEmpty(ItemConvertible item, int count)
copyComponentsToNewStackIgnoreEmpty(ItemConvertible item, int count)
m_320013_(C_1595_ p_333334_, int arg1)
public static boolean
a(cuq arg0, cuq arg1)
matches(ItemStack arg0, ItemStack arg1)
method_7973(class_1799 arg0, class_1799 arg1)
m_tgkzgfpm(C_sddaxwyk arg0, C_sddaxwyk arg1)
areEqual(ItemStack left, ItemStack right)
areEqual(ItemStack stack, ItemStack otherStack)
m_41728_(C_1391_ p_41729_, C_1391_ p_41730_)
public static boolean
a(List<cuq> arg0, List<cuq> arg1)
listMatches(List<ItemStack> arg0, List<ItemStack> arg1)
method_57362(List<class_1799> arg0, List<class_1799> arg1)
m_skenhwqy(List<C_sddaxwyk> arg0, List<C_sddaxwyk> arg1)
stacksEqual(List<ItemStack> left, List<ItemStack> right)
areEqual(List<ItemStack> left, List<ItemStack> right)
m_319597_(List<C_1391_> p_335471_, List<C_1391_> p_334624_)
public static boolean
b(cuq arg0, cuq arg1)
isSameItem(ItemStack arg0, ItemStack arg1)
method_7984(class_1799 arg0, class_1799 arg1)
m_mhrovmoq(C_sddaxwyk arg0, C_sddaxwyk arg1)
areItemsEqual(ItemStack left, ItemStack right)
itemsMatch(ItemStack stack1, ItemStack stack2)
m_41656_(C_1391_ p_287761_, C_1391_ p_287676_)
public static boolean
c(cuq arg0, cuq arg1)
isSameItemSameComponents(ItemStack arg0, ItemStack arg1)
method_31577(class_1799 arg0, class_1799 arg1)
m_xdahsubv(C_sddaxwyk arg0, C_sddaxwyk arg1)
areItemsAndComponentsEqual(ItemStack stack, ItemStack otherStack)
itemsAndComponentsMatch(ItemStack stack, ItemStack otherStack)
m_322370_(C_1391_ p_334397_, C_1391_ p_331609_)
public static com.mojang.serialization.MapCodec<ItemStack>
a(String arg0)
lenientOptionalFieldOf(String arg0)
method_56702(String arg0)
m_nphkgyhm(String arg0)
createOptionalCodec(String fieldName)
m_323240_(String p_336149_)
public static int
a(cuq arg0)
hashItemAndComponents(ItemStack arg0)
method_57355(class_1799 arg0)
m_tqkhmqrq(C_sddaxwyk arg0)
hashCode(ItemStack stack)
hashCode(ItemStack stack)
m_322198_(C_1391_ p_334004_)
public static int
a(List<cuq> arg0)
hashStackList(List<ItemStack> arg0)
method_57361(List<class_1799> arg0)
m_imgzslzn(List<C_sddaxwyk> arg0)
listHashCode(List<ItemStack> stacks)
listHashCode(List<ItemStack> stacks)
m_318747_(List<C_1391_> p_333449_)
public String
t()
getDescriptionId()
method_7922()
m_xlccoiox()
getTranslationKey()
getTranslationKey()
m_41778_()
public void
a(dbz arg0, bsv arg1, int arg2, boolean arg3)
inventoryTick(Level arg0, Entity arg1, int arg2, boolean arg3)
method_7917(class_1937 arg0, class_1297 arg1, int arg2, boolean arg3)
m_cwjcossc(C_cdctfzbn arg0, C_astfners arg1, int arg2, boolean arg3)
inventoryTick(World world, Entity entity, int slot, boolean selected)
inventoryTick(World world, Entity entity, int slot, boolean selected)
m_41666_(C_1596_ p_41668_, C_507_ p_41669_, int p_41670_, boolean arg3)
public void
a(dbz arg0, cmy arg1, int arg2)
onCraftedBy(Level arg0, Player arg1, int arg2)
method_7982(class_1937 arg0, class_1657 arg1, int arg2)
m_zpjrlkav(C_cdctfzbn arg0, C_jzrpycqo arg1, int arg2)
onCraftByPlayer(World world, PlayerEntity player, int amount)
onCraftByPlayer(World world, PlayerEntity player, int amount)
m_41678_(C_1596_ p_41680_, C_1141_ p_41681_, int arg2)
public void
a(dbz arg0)
onCraftedBySystem(Level arg0)
method_54466(class_1937 arg0)
m_umudukuf(C_cdctfzbn arg0)
onCraftByCrafter(World world)
onCraft(World world)
m_305085_(C_1596_ arg0)
public int
u()
getUseDuration()
method_7935()
m_fggiijyg()
getMaxUseTime()
getMaxUseTime()
m_41779_()
public UseAnim
v()
getUseAnimation()
method_7976()
m_dfvhukte()
getUseAction()
getUseAction()
m_41780_()
public void
a(dbz arg0, btq arg1, int arg2)
releaseUsing(Level arg0, LivingEntity arg1, int arg2)
method_7930(class_1937 arg0, class_1309 arg1, int arg2)
m_wjnupjdh(C_cdctfzbn arg0, C_usxaxydn arg1, int arg2)
onStoppedUsing(World world, LivingEntity user, int remainingUseTicks)
onStoppedUsing(World world, LivingEntity user, int remainingUseTicks)
m_41674_(C_1596_ p_41676_, C_524_ p_41677_, int arg2)
public boolean
w()
useOnRelease()
method_7967()
m_biphgkrd()
isUsedOnRelease()
isUsedOnRelease()
m_41781_()
public <T> T
b(kl<? super T> arg0, T arg1)
set(DataComponentType<? super T> arg0, T arg1)
method_57379(class_9331<? super T> arg0, T arg1)
m_zakagwqa(C_pscqxfcs<? super T> arg0, T arg1)
set(DataComponentType<? super T> type, T value)
set(DataComponentType<? super T> type, T value)
m_322496_(C_313543_<? super T> p_335655_, T arg1)
public <T, U> T
a(kl<T> arg0, T arg1, U arg2, BiFunction<T, U, T> arg3)
update(DataComponentType<T> arg0, T arg1, U arg2, BiFunction<T, U, T> arg3)
method_57367(class_9331<T> arg0, T arg1, U arg2, BiFunction<T, U, T> arg3)
m_iaantrnc(C_pscqxfcs<T> arg0, T arg1, U arg2, BiFunction<T, U, T> arg3)
apply(DataComponentType<T> type, T defaultValue, U change, BiFunction<T, U, T> applier)
apply(DataComponentType<T> type, T defaultValue, U newValue, BiFunction<T, U, T> componentFactory)
m_324919_(C_313543_<T> p_327708_, T p_332086_, U p_329834_, BiFunction<T, U, T> arg3)
public <T> T
a(kl<T> arg0, T arg1, UnaryOperator<T> arg2)
update(DataComponentType<T> arg0, T arg1, UnaryOperator<T> arg2)
method_57368(class_9331<T> arg0, T arg1, UnaryOperator<T> arg2)
m_kamdhzie(C_pscqxfcs<T> arg0, T arg1, UnaryOperator<T> arg2)
apply(DataComponentType<T> type, T defaultValue, UnaryOperator<T> applier)
apply(DataComponentType<T> type, T defaultValue, UnaryOperator<T> componentFactory)
m_322591_(C_313543_<T> p_329705_, T p_335114_, UnaryOperator<T> arg2)
public <T> T
c(kl<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57381(class_9331<? extends T> arg0)
m_kdmqavat(C_pscqxfcs<? extends T> arg0)
remove(DataComponentType<? extends T> type)
remove(DataComponentType<? extends T> type)
m_319322_(C_313543_<? extends T> arg0)
public void
a(kj arg0)
applyComponentsAndValidate(DataComponentPatch arg0)
method_59692(class_9326 arg0)
m_tdkbrlov(C_jqyoylib arg0)
applyChanges(ComponentChanges changes)
m_320623_(C_313461_ arg0)
public void
b(kj arg0)
applyComponents(DataComponentPatch arg0)
method_57366(class_9326 arg0)
m_qxooancw(C_jqyoylib arg0)
applyUnvalidatedChanges(ComponentChanges changes)
applyPatch(DataComponentPatch patch)
m_319238_(C_313461_ arg0)
public void
b(ki arg0)
applyComponents(DataComponentMap arg0)
method_57365(class_9323 arg0)
m_vchnqfkp(C_kouhnfig arg0)
applyComponentsFrom(ComponentMap components)
applyComponents(DataComponentMap map)
m_323474_(C_313470_ arg0)
public Component
x()
getHoverName()
method_7964()
m_xvzvtufo()
getName()
getName()
m_41786_()
private <T extends TooltipProvider> void
a(kl<T> arg0, cul$b arg1, Consumer<xp> arg2, cwj arg3)
addToTooltip(DataComponentType<T> arg0, Item$TooltipContext arg1, Consumer<Component> arg2, TooltipFlag arg3)
method_57369(class_9331<T> arg0, class_1792$class_9635 arg1, Consumer<class_2561> arg2, class_1836 arg3)
m_hdopgosb(C_pscqxfcs<T> arg0, C_vorddnax$C_rdhfmrgz arg1, Consumer<C_rdaqiwdt> arg2, C_taebrtdw arg3)
appendTooltip(DataComponentType<T> componentType, Item$TooltipContext context, Consumer<Text> textConsumer, TooltipType type)
appendTooltip(DataComponentType<T> componentType, Item$TooltipContext context, Consumer<Text> tooltipConsumer, TooltipConfig config)
m_319928_(C_313543_<T> p_333562_, C_1381_$C_313602_ p_334534_, Consumer<C_4996_> p_333715_, C_1431_ arg3)
public List<Component>
a(cul$b arg0, cmy arg1, cwj arg2)
getTooltipLines(Item$TooltipContext arg0, Player arg1, TooltipFlag arg2)
method_7950(class_1792$class_9635 arg0, class_1657 arg1, class_1836 arg2)
m_ywdqmcbk(C_vorddnax$C_rdhfmrgz arg0, C_jzrpycqo arg1, C_taebrtdw arg2)
getTooltip(Item$TooltipContext context, PlayerEntity player, TooltipType type)
getTooltip(Item$TooltipContext context, PlayerEntity player, TooltipConfig config)
m_41651_(C_1381_$C_313602_ p_41652_, C_1141_ p_41653_, C_1431_ arg2)
private void
a(Consumer<xp> arg0, cmy arg1)
addAttributeTooltips(Consumer<Component> arg0, Player arg1)
method_57363(Consumer<class_2561> arg0, class_1657 arg1)
m_phvcusub(Consumer<C_rdaqiwdt> arg0, C_jzrpycqo arg1)
appendAttributeModifiersTooltip(Consumer<Text> textConsumer, PlayerEntity player)
appendModifierTooltips(Consumer<Text> textConsumer, PlayerEntity player)
m_322901_(Consumer<C_4996_> p_332769_, C_1141_ arg1)
private void
a(Consumer<xp> arg0, cmy arg1, ji<but> arg2, buw arg3)
addModifierTooltip(Consumer<Component> arg0, Player arg1, Holder<Attribute> arg2, AttributeModifier arg3)
method_57364(Consumer<class_2561> arg0, class_1657 arg1, class_6880<class_1320> arg2, class_1322 arg3)
m_aedabdbt(Consumer<C_rdaqiwdt> arg0, C_jzrpycqo arg1, C_cjzoxshv<C_ppzfbbsy> arg2, C_hdbqsqsm arg3)
appendAttributeModifierTooltip(Consumer<Text> textConsumer, PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier)
appendModifierTooltip(Consumer<Text> textConsumer, PlayerEntity player, Holder<EntityAttribute> attribute, EntityAttributeModifier modifier)
m_322829_(Consumer<C_4996_> p_328442_, C_1141_ p_336373_, C_203228_<C_552_> p_332746_, C_555_ arg3)
public boolean
y()
hasFoil()
method_7958()
m_vncsdaoo()
hasGlint()
hasGlint()
m_41790_()
public Rarity
z()
getRarity()
method_7932()
m_yrbtnzbt()
getRarity()
getRarity()
m_41791_()
public boolean
A()
isEnchantable()
method_7923()
m_gwzgwsrv()
isEnchantable()
isEnchantable()
m_41792_()
public void
a(dab arg0, int arg1)
enchant(Enchantment arg0, int arg1)
method_7978(class_1887 arg0, int arg1)
m_nisvbeaw(C_jxtrubuh arg0, int arg1)
addEnchantment(Enchantment enchantment, int level)
addEnchantment(Enchantment enchantment, int level)
m_41663_(C_1505_ p_41665_, int arg1)
public boolean
B()
isEnchanted()
method_7942()
m_zszkcovn()
hasEnchantments()
hasEnchantments()
m_41793_()
public ItemEnchantments
C()
getEnchantments()
method_58657()
m_wjqnxase()
getEnchantments()
m_319737_()
public boolean
D()
isFramed()
method_7961()
m_tcgbrtym()
isInFrame()
isInFrame()
m_41794_()
public void
a(bsv arg0)
setEntityRepresentation(Entity arg0)
method_27320(class_1297 arg0)
m_xqyyeqdc(C_astfners arg0)
setHolder(Entity holder)
setHolder(Entity holder)
m_41636_(C_507_ arg0)
public ItemFrame
E()
getFrame()
method_7945()
m_sqtvrdfj()
getFrame()
getFrame()
m_41795_()
public Entity
F()
getEntityRepresentation()
method_27319()
m_yawcimjo()
getHolder()
getEntityHolder()
m_41609_()
public void
a(btc arg0, BiConsumer<ji<but>, buw> arg1)
forEachModifier(EquipmentSlot arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_57354(class_1304 arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
m_khepgwsw(C_yuycoehb arg0, BiConsumer<C_cjzoxshv<C_ppzfbbsy>, C_hdbqsqsm> arg1)
applyAttributeModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer)
forEachModifier(EquipmentSlot slot, BiConsumer<Holder<EntityAttribute>, EntityAttributeModifier> modifierConsumer)
m_321237_(C_516_ p_334430_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public Component
G()
getDisplayName()
method_7954()
m_ihhujymf()
toHoverableText()
toHoverableText()
m_41611_()
public boolean
a(dsh arg0)
canPlaceOnBlockInAdventureMode(BlockInWorld arg0)
method_57357(class_2694 arg0)
m_qiozuhii(C_gogfiawf arg0)
canPlaceOn(CachedBlockPosition pos)
canPlaceOnInAdventureMode(CachedBlockPosition pos)
m_321400_(C_2070_ arg0)
public boolean
b(dsh arg0)
canBreakBlockInAdventureMode(BlockInWorld arg0)
method_57373(class_2694 arg0)
m_cpmzxurz(C_gogfiawf arg0)
canBreak(CachedBlockPosition pos)
canBreakInAdventureMode(CachedBlockPosition pos)
m_323082_(C_2070_ arg0)
public int
H()
getPopTime()
method_7965()
m_pwfafzwz()
getBobbingAnimationTime()
getCooldown()
m_41612_()
public void
d(int arg0)
setPopTime(int arg0)
method_7912(int arg0)
m_utrmkjnp(int arg0)
setBobbingAnimationTime(int bobbingAnimationTime)
setCooldown(int cooldown)
m_41754_(int arg0)
public int
I()
getCount()
method_7947()
m_uglewown()
getCount()
getCount()
m_41613_()
public void
e(int arg0)
setCount(int arg0)
method_7939(int arg0)
m_bpcuczsh(int arg0)
setCount(int count)
setCount(int count)
m_41764_(int arg0)
public void
f(int arg0)
limitSize(int arg0)
method_58408(int arg0)
m_uzwjgkgy(int arg0)
capCount(int maxCount)
m_uzwjgkgy(int count)
m_324521_(int arg0)
public void
g(int arg0)
grow(int arg0)
method_7933(int arg0)
m_nivkbhlq(int arg0)
increment(int amount)
increment(int amount)
m_41769_(int arg0)
public void
h(int arg0)
shrink(int arg0)
method_7934(int arg0)
m_whunqrso(int arg0)
decrement(int amount)
decrement(int amount)
m_41774_(int arg0)
public void
a(int arg0, btq arg1)
consume(int arg0, LivingEntity arg1)
method_57008(int arg0, class_1309 arg1)
m_tyuugrfg(int arg0, C_usxaxydn arg1)
decrementUnlessCreative(int amount, LivingEntity entity)
consume(int amount, LivingEntity entity)
m_321439_(int p_334302_, C_524_ arg1)
public void
b(dbz arg0, btq arg1, int arg2)
onUseTick(Level arg0, LivingEntity arg1, int arg2)
method_7949(class_1937 arg0, class_1309 arg1, int arg2)
m_iadyttua(C_cdctfzbn arg0, C_usxaxydn arg1, int arg2)
usageTick(World world, LivingEntity user, int remainingUseTicks)
usageTick(World world, LivingEntity user, int remainingUseTicks)
m_41731_(C_1596_ p_41733_, C_524_ p_41734_, int arg2)
public void
a(cji arg0)
onDestroyed(ItemEntity arg0)
method_33262(class_1542 arg0)
m_oszmcroz(C_uqpzijng arg0)
onItemEntityDestroyed(ItemEntity entity)
onItemEntityDestroyed(ItemEntity entity)
m_150924_(C_976_ arg0)
public SoundEvent
J()
getDrinkingSound()
method_21832()
m_vhnmbpvg()
getDrinkSound()
getDrinkSound()
m_41615_()
public SoundEvent
K()
getEatingSound()
method_21833()
m_mwztqdza()
getEatSound()
getEatSound()
m_41616_()
public SoundEvent
L()
getBreakingSound()
method_57351()
m_kmktysli()
getBreakSound()
getBreakSound()
m_321057_()
public boolean
a(bro arg0)
canBeHurtBy(DamageSource arg0)
method_58407(class_1282 arg0)
m_yprgpdac(C_sbxfkpyv arg0)
takesDamageFrom(DamageSource source)
m_325012_(C_489_ arg0)