net.minecraft.world.item

public final class ItemStack

implements DataComponentHolder

cuq
net.minecraft.world.item.ItemStack
net.minecraft.class_1799
net.minecraft.item.ItemStack
net.minecraft.src.C_1391_
net.minecraft.world.item.ItemStack

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Holder<Item>>
a
ITEM_NON_AIR_CODEC
field_47312
ITEM_CODEC
f_303113_
public static final com.mojang.serialization.Codec<ItemStack>
b
CODEC
field_24671
CODEC
f_41582_
public static final com.mojang.serialization.Codec<ItemStack>
c
SINGLE_ITEM_CODEC
field_49747
UNCOUNTED_CODEC
f_302992_
public static final com.mojang.serialization.Codec<ItemStack>
d
STRICT_CODEC
field_51397
VALIDATED_CODEC
f_315780_
public static final com.mojang.serialization.Codec<ItemStack>
e
STRICT_SINGLE_ITEM_CODEC
field_51398
VALIDATED_UNCOUNTED_CODEC
f_316270_
public static final com.mojang.serialization.Codec<ItemStack>
f
OPTIONAL_CODEC
field_49266
OPTIONAL_CODEC
f_316315_
public static final com.mojang.serialization.Codec<ItemStack>
g
SIMPLE_ITEM_CODEC
field_49267
REGISTRY_ENTRY_CODEC
f_315943_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemStack>
h
OPTIONAL_STREAM_CODEC
field_49268
OPTIONAL_PACKET_CODEC
f_314979_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemStack>
i
STREAM_CODEC
field_48349
PACKET_CODEC
f_315801_
public static final StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>>
j
OPTIONAL_LIST_STREAM_CODEC
field_49269
OPTIONAL_LIST_PACKET_CODEC
f_315592_
public static final StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>>
k
LIST_STREAM_CODEC
field_48350
LIST_PACKET_CODEC
f_314960_
private static final org.slf4j.Logger
m
LOGGER
field_8033
LOGGER
f_41585_
public static final ItemStack
l
EMPTY
field_8037
EMPTY
f_41583_
private static final Component
n
DISABLED_ITEM_TOOLTIP
field_40211
DISABLED_TEXT
f_243862_
private int
o
count
field_8031
count
f_41587_
private int
p
popTime
field_8030
bobbingAnimationTime
f_41588_
private final Item
q
item
field_8038
item
f_41589_
final PatchedDataComponentMap
r
components
field_49270
components
f_315342_
private Entity
s
entityRepresentation
field_24093
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)
validate(ItemStack stack)
m_323584_(C_1391_ p_332181_)
public static StreamCodec<RegistryFriendlyByteBuf, ItemStack>
a(yx<wk, cuq> arg0)
validatedStreamCodec(StreamCodec<RegistryFriendlyByteBuf, ItemStack> arg0)
method_59693(class_9139<class_9129, class_1799> arg0)
createExtraValidatingPacketCodec(PacketCodec<RegistryByteBuf, ItemStack> basePacketCodec)
m_319263_(C_313866_<C_313350_, C_1391_> p_332790_)
public Optional<TooltipComponent>
b()
getTooltipImage()
method_32347()
getTooltipData()
m_150921_()
public DataComponentMap
a()
getComponents()
method_57353()
getComponents()
m_318732_()
public DataComponentMap
c()
getPrototype()
method_58658()
getDefaultComponents()
m_322741_()
public DataComponentPatch
d()
getComponentsPatch()
method_57380()
getComponentChanges()
m_324277_()
public static com.mojang.serialization.DataResult<Unit>
a(km arg0)
validateComponents(DataComponentMap arg0)
method_59691(class_9323 arg0)
validateComponents(ComponentMap components)
m_320698_(C_313470_ p_336343_)
public static Optional<ItemStack>
a(jo$a arg0, uy arg1)
parse(HolderLookup$Provider arg0, Tag arg1)
method_57360(class_7225$class_7874 arg0, class_2520 arg1)
fromNbt(RegistryWrapper$WrapperLookup registries, NbtElement nbt)
m_323951_(C_213466_$C_254607_ p_332204_, C_4950_ p_336056_)
public static ItemStack
a(jo$a arg0, ub arg1)
parseOptional(HolderLookup$Provider arg0, CompoundTag arg1)
method_57359(class_7225$class_7874 arg0, class_2487 arg1)
fromNbtOrEmpty(RegistryWrapper$WrapperLookup registries, NbtCompound nbt)
m_318937_(C_213466_$C_254607_ p_333870_, C_4917_ p_328391_)
public boolean
e()
isEmpty()
method_7960()
isEmpty()
m_41619_()
public boolean
a(cpl arg0)
isItemEnabled(FeatureFlagSet arg0)
method_45435(class_7699 arg0)
isItemEnabled(FeatureSet enabledFeatures)
m_246617_(C_243488_ arg0)
public ItemStack
a(int arg0)
split(int arg0)
method_7971(int arg0)
split(int amount)
m_41620_(int arg0)
public ItemStack
f()
copyAndClear()
method_51164()
copyAndEmpty()
m_278832_()
public Item
g()
getItem()
method_7909()
getItem()
m_41720_()
public Holder<Item>
h()
getItemHolder()
method_41409()
getRegistryEntry()
m_220173_()
public boolean
a(awu<cul> arg0)
is(TagKey<Item> arg0)
method_31573(class_6862<class_1792> arg0)
isIn(TagKey<Item> tag)
m_204117_(C_203208_<C_1381_> arg0)
public boolean
a(cul arg0)
is(Item arg0)
method_31574(class_1792 arg0)
isOf(Item item)
m_150930_(C_1381_ arg0)
public boolean
a(Predicate<jm<cul>> arg0)
is(Predicate<Holder<Item>> arg0)
method_41407(Predicate<class_6880<class_1792>> arg0)
itemMatches(Predicate<RegistryEntry<Item>> predicate)
m_220167_(Predicate<C_203228_<C_1381_>> arg0)
public boolean
a(jm<cul> arg0)
is(Holder<Item> arg0)
method_41406(class_6880<class_1792> arg0)
itemMatches(RegistryEntry<Item> itemEntry)
m_220165_(C_203228_<C_1381_> arg0)
public boolean
a(jq<cul> arg0)
is(HolderSet<Item> arg0)
method_53187(class_6885<class_1792> arg0)
isIn(RegistryEntryList<Item> registryEntryList)
m_295139_(C_203233_<C_1381_> arg0)
public Stream<TagKey<Item>>
i()
getTags()
method_40133()
streamTags()
m_204131_()
public InteractionResult
a(cyf arg0)
useOn(UseOnContext arg0)
method_7981(class_1838 arg0)
useOnBlock(ItemUsageContext context)
m_41661_(C_1450_ arg0)
public float
a(dtc arg0)
getDestroySpeed(BlockState arg0)
method_7924(class_2680 arg0)
getMiningSpeedMultiplier(BlockState state)
m_41691_(C_2064_ arg0)
public InteractionResultHolder<ItemStack>
a(dcw arg0, cmx arg1, bqq arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7913(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World world, PlayerEntity user, Hand hand)
m_41682_(C_1596_ p_41684_, C_1141_ p_41685_, C_470_ arg2)
public ItemStack
a(dcw arg0, btn arg1)
finishUsingItem(Level arg0, LivingEntity arg1)
method_7910(class_1937 arg0, class_1309 arg1)
finishUsing(World world, LivingEntity user)
m_41671_(C_1596_ p_41673_, C_524_ arg1)
public Tag
b(jo$a arg0, uy arg1)
save(HolderLookup$Provider arg0, Tag arg1)
method_57376(class_7225$class_7874 arg0, class_2520 arg1)
encode(RegistryWrapper$WrapperLookup registries, NbtElement prefix)
m_321167_(C_213466_$C_254607_ p_332574_, C_4950_ arg1)
public Tag
a(jo$a arg0)
save(HolderLookup$Provider arg0)
method_57358(class_7225$class_7874 arg0)
encode(RegistryWrapper$WrapperLookup registries)
m_41739_(C_213466_$C_254607_ arg0)
public Tag
b(jo$a arg0)
saveOptional(HolderLookup$Provider arg0)
method_57375(class_7225$class_7874 arg0)
encodeAllowEmpty(RegistryWrapper$WrapperLookup registries)
m_324153_(C_213466_$C_254607_ arg0)
public int
j()
getMaxStackSize()
method_7914()
getMaxCount()
m_41741_()
public boolean
k()
isStackable()
method_7946()
isStackable()
m_41753_()
public boolean
l()
isDamageableItem()
method_7963()
isDamageable()
m_41763_()
public boolean
m()
isDamaged()
method_7986()
isDamaged()
m_41768_()
public int
n()
getDamageValue()
method_7919()
getDamage()
m_41773_()
public void
b(int arg0)
setDamageValue(int arg0)
method_7974(int arg0)
setDamage(int damage)
m_41721_(int arg0)
public int
o()
getMaxDamage()
method_7936()
getMaxDamage()
m_41776_()
public void
a(int arg0, aqu arg1, aqv arg2, Consumer<cul> arg3)
hurtAndBreak(int arg0, ServerLevel arg1, ServerPlayer arg2, Consumer<Item> arg3)
method_7956(int arg0, class_3218 arg1, class_3222 arg2, Consumer<class_1792> arg3)
damage(int amount, ServerWorld world, ServerPlayerEntity player, Consumer<Item> breakCallback)
m_220157_(int p_342197_, C_12_ p_220160_, C_13_ p_343361_, Consumer<C_1381_> arg3)
public void
a(int arg0, btn arg1, bsy arg2)
hurtAndBreak(int arg0, LivingEntity arg1, EquipmentSlot arg2)
method_7970(int arg0, class_1309 arg1, class_1304 arg2)
damage(int amount, LivingEntity entity, EquipmentSlot slot)
m_41622_(int p_41624_, C_524_ p_335324_, C_516_ arg2)
public ItemStack
a(int arg0, dcv arg1, btn arg2, bsy arg3)
hurtAndConvertOnBreak(int arg0, ItemLike arg1, LivingEntity arg2, EquipmentSlot arg3)
method_60986(int arg0, class_1935 arg1, class_1309 arg2, class_1304 arg3)
damage(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot)
m_340236_(int p_344647_, C_1595_ p_342270_, C_524_ p_345347_, C_516_ arg3)
public boolean
p()
isBarVisible()
method_31578()
isItemBarVisible()
m_150947_()
public int
q()
getBarWidth()
method_31579()
getItemBarStep()
m_150948_()
public int
r()
getBarColor()
method_31580()
getItemBarColor()
m_150949_()
public boolean
a(crq arg0, cqd arg1, cmx arg2)
overrideStackedOnOther(Slot arg0, ClickAction arg1, Player arg2)
method_31575(class_1735 arg0, class_5536 arg1, class_1657 arg2)
onStackClicked(Slot slot, 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, cmx arg3, bug 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)
onClicked(ItemStack stack, Slot slot, 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 boolean
a(btn arg0, cmx arg1)
hurtEnemy(LivingEntity arg0, Player arg1)
method_7979(class_1309 arg0, class_1657 arg1)
postHit(LivingEntity target, PlayerEntity player)
m_41640_(C_524_ p_41642_, C_1141_ arg1)
public void
b(btn arg0, cmx arg1)
postHurtEnemy(LivingEntity arg0, Player arg1)
method_59979(class_1309 arg0, class_1657 arg1)
postDamageEntity(LivingEntity target, PlayerEntity player)
m_339261_(C_524_ p_342361_, C_1141_ arg1)
public void
a(dcw arg0, dtc arg1, jd arg2, cmx arg3)
mineBlock(Level arg0, BlockState arg1, BlockPos arg2, Player arg3)
method_7952(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1657 arg3)
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(dtc arg0)
isCorrectToolForDrops(BlockState arg0)
method_7951(class_2680 arg0)
isSuitableFor(BlockState state)
m_41735_(C_2064_ arg0)
public InteractionResult
a(cmx arg0, btn arg1, bqq arg2)
interactLivingEntity(Player arg0, LivingEntity arg1, InteractionHand arg2)
method_7920(class_1657 arg0, class_1309 arg1, class_1268 arg2)
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()
copy()
m_41777_()
public ItemStack
c(int arg0)
copyWithCount(int arg0)
method_46651(int arg0)
copyWithCount(int count)
m_255036_(int arg0)
public ItemStack
a(dcv arg0)
transmuteCopy(ItemLike arg0)
method_60503(class_1935 arg0)
withItem(ItemConvertible item)
m_338455_(C_1595_ arg0)
public ItemStack
a(dcv arg0, int arg1)
transmuteCopy(ItemLike arg0, int arg1)
method_56701(class_1935 arg0, int arg1)
copyComponentsToNewStack(ItemConvertible item, int count)
m_319323_(C_1595_ p_334821_, int arg1)
private ItemStack
b(dcv arg0, int arg1)
transmuteCopyIgnoreEmpty(ItemLike arg0, int arg1)
method_56704(class_1935 arg0, int arg1)
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)
areEqual(ItemStack left, ItemStack right)
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)
stacksEqual(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)
areItemsEqual(ItemStack left, ItemStack right)
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)
areItemsAndComponentsEqual(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)
createOptionalCodec(String fieldName)
m_323240_(String p_336149_)
public static int
a(cuq arg0)
hashItemAndComponents(ItemStack arg0)
method_57355(class_1799 arg0)
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)
listHashCode(List<ItemStack> stacks)
m_318747_(List<C_1391_> p_333449_)
public String
t()
getDescriptionId()
method_7922()
getTranslationKey()
m_41778_()
public void
a(dcw arg0, bsr 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)
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(dcw arg0, cmx arg1, int arg2)
onCraftedBy(Level arg0, Player arg1, int arg2)
method_7982(class_1937 arg0, class_1657 arg1, int arg2)
onCraftByPlayer(World world, PlayerEntity player, int amount)
m_41678_(C_1596_ p_41680_, C_1141_ p_41681_, int arg2)
public void
a(dcw arg0)
onCraftedBySystem(Level arg0)
method_54466(class_1937 arg0)
onCraftByCrafter(World world)
m_305085_(C_1596_ arg0)
public int
a(btn arg0)
getUseDuration(LivingEntity arg0)
method_7935(class_1309 arg0)
getMaxUseTime(LivingEntity user)
m_41779_(C_524_ arg0)
public UseAnim
u()
getUseAnimation()
method_7976()
getUseAction()
m_41780_()
public void
a(dcw arg0, btn arg1, int arg2)
releaseUsing(Level arg0, LivingEntity arg1, int arg2)
method_7930(class_1937 arg0, class_1309 arg1, int arg2)
onStoppedUsing(World world, LivingEntity user, int remainingUseTicks)
m_41674_(C_1596_ p_41676_, C_524_ p_41677_, int arg2)
public boolean
v()
useOnRelease()
method_7967()
isUsedOnRelease()
m_41781_()
public <T> T
b(kp<? super T> arg0, T arg1)
set(DataComponentType<? super T> arg0, T arg1)
method_57379(class_9331<? super T> arg0, T arg1)
set(ComponentType<? super T> type, T value)
m_322496_(C_313543_<? super T> p_335655_, T arg1)
public <T, U> T
a(kp<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)
apply(ComponentType<T> type, T defaultValue, U change, BiFunction<T, U, T> applier)
m_324919_(C_313543_<T> p_327708_, T p_332086_, U p_329834_, BiFunction<T, U, T> arg3)
public <T> T
a(kp<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)
apply(ComponentType<T> type, T defaultValue, UnaryOperator<T> applier)
m_322591_(C_313543_<T> p_329705_, T p_335114_, UnaryOperator<T> arg2)
public <T> T
c(kp<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57381(class_9331<? extends T> arg0)
remove(ComponentType<? extends T> type)
m_319322_(C_313543_<? extends T> arg0)
public void
a(kn arg0)
applyComponentsAndValidate(DataComponentPatch arg0)
method_59692(class_9326 arg0)
applyChanges(ComponentChanges changes)
m_320623_(C_313461_ arg0)
public void
b(kn arg0)
applyComponents(DataComponentPatch arg0)
method_57366(class_9326 arg0)
applyUnvalidatedChanges(ComponentChanges changes)
m_319238_(C_313461_ arg0)
public void
b(km arg0)
applyComponents(DataComponentMap arg0)
method_57365(class_9323 arg0)
applyComponentsFrom(ComponentMap components)
m_323474_(C_313470_ arg0)
public Component
w()
getHoverName()
method_7964()
getName()
m_41786_()
private <T extends TooltipProvider> void
a(kp<T> arg0, cul$b arg1, Consumer<wz> arg2, cwm 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)
appendTooltip(ComponentType<T> componentType, Item$TooltipContext context, Consumer<Text> textConsumer, TooltipType type)
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, cmx arg1, cwm arg2)
getTooltipLines(Item$TooltipContext arg0, Player arg1, TooltipFlag arg2)
method_7950(class_1792$class_9635 arg0, class_1657 arg1, class_1836 arg2)
getTooltip(Item$TooltipContext context, PlayerEntity player, TooltipType type)
m_41651_(C_1381_$C_313602_ p_41652_, C_1141_ p_41653_, C_1431_ arg2)
private void
a(Consumer<wz> arg0, cmx arg1)
addAttributeTooltips(Consumer<Component> arg0, Player arg1)
method_57363(Consumer<class_2561> arg0, class_1657 arg1)
appendAttributeModifiersTooltip(Consumer<Text> textConsumer, PlayerEntity player)
m_322901_(Consumer<C_4996_> p_332769_, C_1141_ arg1)
private void
a(Consumer<wz> arg0, cmx arg1, jm<bur> arg2, buu 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)
appendAttributeModifierTooltip(Consumer<Text> textConsumer, PlayerEntity player, RegistryEntry<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
x()
hasFoil()
method_7958()
hasGlint()
m_41790_()
public Rarity
y()
getRarity()
method_7932()
getRarity()
m_41791_()
public boolean
z()
isEnchantable()
method_7923()
isEnchantable()
m_41792_()
public void
a(jm<dac> arg0, int arg1)
enchant(Holder<Enchantment> arg0, int arg1)
method_7978(class_6880<class_1887> arg0, int arg1)
addEnchantment(RegistryEntry<Enchantment> enchantment, int level)
m_41663_(C_203228_<C_1505_> p_41665_, int arg1)
public boolean
A()
isEnchanted()
method_7942()
hasEnchantments()
m_41793_()
public ItemEnchantments
B()
getEnchantments()
method_58657()
getEnchantments()
m_319737_()
public boolean
C()
isFramed()
method_7961()
isInFrame()
m_41794_()
public void
a(bsr arg0)
setEntityRepresentation(Entity arg0)
method_27320(class_1297 arg0)
setHolder(Entity holder)
m_41636_(C_507_ arg0)
public ItemFrame
D()
getFrame()
method_7945()
getFrame()
m_41795_()
public Entity
E()
getEntityRepresentation()
method_27319()
getHolder()
m_41609_()
public void
a(bsz arg0, BiConsumer<jm<bur>, buu> arg1)
forEachModifier(EquipmentSlotGroup arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_60617(class_9274 arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
applyAttributeModifier(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer)
m_339103_(C_313414_ p_342345_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public void
a(bsy arg0, BiConsumer<jm<bur>, buu> arg1)
forEachModifier(EquipmentSlot arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_57354(class_1304 arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
applyAttributeModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer)
m_321237_(C_516_ p_334430_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public Component
F()
getDisplayName()
method_7954()
toHoverableText()
m_41611_()
public boolean
a(dtg arg0)
canPlaceOnBlockInAdventureMode(BlockInWorld arg0)
method_57357(class_2694 arg0)
canPlaceOn(CachedBlockPosition pos)
m_321400_(C_2070_ arg0)
public boolean
b(dtg arg0)
canBreakBlockInAdventureMode(BlockInWorld arg0)
method_57373(class_2694 arg0)
canBreak(CachedBlockPosition pos)
m_323082_(C_2070_ arg0)
public int
G()
getPopTime()
method_7965()
getBobbingAnimationTime()
m_41612_()
public void
d(int arg0)
setPopTime(int arg0)
method_7912(int arg0)
setBobbingAnimationTime(int bobbingAnimationTime)
m_41754_(int arg0)
public int
H()
getCount()
method_7947()
getCount()
m_41613_()
public void
e(int arg0)
setCount(int arg0)
method_7939(int arg0)
setCount(int count)
m_41764_(int arg0)
public void
f(int arg0)
limitSize(int arg0)
method_58408(int arg0)
capCount(int maxCount)
m_324521_(int arg0)
public void
g(int arg0)
grow(int arg0)
method_7933(int arg0)
increment(int amount)
m_41769_(int arg0)
public void
h(int arg0)
shrink(int arg0)
method_7934(int arg0)
decrement(int amount)
m_41774_(int arg0)
public void
a(int arg0, btn arg1)
consume(int arg0, LivingEntity arg1)
method_57008(int arg0, class_1309 arg1)
decrementUnlessCreative(int amount, LivingEntity entity)
m_321439_(int p_334302_, C_524_ arg1)
public ItemStack
b(int arg0, btn arg1)
consumeAndReturn(int arg0, LivingEntity arg1)
method_60504(int arg0, class_1309 arg1)
splitUnlessCreative(int amount, LivingEntity entity)
m_338460_(int p_344112_, C_524_ arg1)
public void
b(dcw arg0, btn arg1, int arg2)
onUseTick(Level arg0, LivingEntity arg1, int arg2)
method_7949(class_1937 arg0, class_1309 arg1, int arg2)
usageTick(World world, LivingEntity user, int remainingUseTicks)
m_41731_(C_1596_ p_41733_, C_524_ p_41734_, int arg2)
public void
a(cjh arg0)
onDestroyed(ItemEntity arg0)
method_33262(class_1542 arg0)
onItemEntityDestroyed(ItemEntity entity)
m_150924_(C_976_ arg0)
public SoundEvent
I()
getDrinkingSound()
method_21832()
getDrinkSound()
m_41615_()
public SoundEvent
J()
getEatingSound()
method_21833()
getEatSound()
m_41616_()
public SoundEvent
K()
getBreakingSound()
method_57351()
getBreakSound()
m_321057_()
public boolean
a(brk arg0)
canBeHurtBy(DamageSource arg0)
method_58407(class_1282 arg0)
takesDamageFrom(DamageSource source)
m_325012_(C_489_ arg0)