net.minecraft.world.item

public final class ItemStack

ben
net.minecraft.world.item.ItemStack
net.minecraft.class_1799
net.minecraft.unmapped.C_sddaxwyk
net.minecraft.item.ItemStack
net.minecraft.item.ItemStack
net.minecraft.server.v1_15_R1.ItemStack

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
LOGGER
field_8033
f_ohakxxel
LOGGER
field_199558_c
public static final ItemStack
a
EMPTY
field_8037
f_lrxqoedj
EMPTY
field_190927_a
public static final DecimalFormat
b
ATTRIBUTE_MODIFIER_FORMAT
field_8029
f_ibxmvtyb
MODIFIER_FORMAT
field_111284_a
private int
d
count
field_8031
f_llcklqth
count
field_77994_a
count
private int
e
popTime
field_8030
f_lxaedfnb
cooldown
field_77992_b
private final Item
f
item
field_8038
f_eqmyksbs
item
field_151002_e
item
private CompoundTag
g
tag
field_8040
f_vfgrucdp
tag
field_77990_d
tag
private boolean
h
emptyCacheFlag
field_8036
f_lkyqbjvm
empty
field_190928_g
private ItemFrame
i
frame
field_8041
f_rdmvedov
frame
field_82843_f
private BlockInWorld
j
cachedBreakBlock
field_8039
f_jdesxjxl
lastDestroyPos
field_179552_h
private boolean
k
cachedBreakBlockResult
field_8035
f_iqfxavng
lastDestroyResult
field_179553_i
private BlockInWorld
l
cachedPlaceBlock
field_8032
f_eenkwnbx
lastPlaceOnPos
field_179550_j
private boolean
m
cachedPlaceBlockResult
field_8034
f_jgwbcpvn
lastPlaceOnResult
field_179551_k

Constructor summary

ModifierConstructor
public (ItemLike item)
public (ItemLike item, int count)
private (CompoundTag tag)

Method summary

Modifier and TypeMethod
private static DecimalFormat
H()
getAttributeDecimalFormat()
method_7931()
m_zfqlkhav()
createModifierFormat()
func_208306_D()
private void
I()
updateEmptyCacheFlag()
method_7957()
m_otubdyns()
updateEmptyState()
func_190923_F()
checkEmpty()
public static ItemStack
a(jt arg0)
of(CompoundTag arg0)
method_7915(class_2487 arg0)
m_xcmgrzww(C_hhlwcnih arg0)
fromTag(CompoundTag tag)
func_199557_a(CompoundNBT arg0)
public boolean
a()
isEmpty()
method_7960()
m_vprylruv()
isEmpty()
func_190926_b()
isEmpty()
public ItemStack
a(int arg0)
split(int arg0)
method_7971(int arg0)
m_cgmsskmm(int arg0)
split(int amount)
func_77979_a(int arg0)
cloneAndSubtract(int arg0)
public Item
b()
getItem()
method_7909()
m_qxfxfsuy()
getItem()
func_77973_b()
getItem()
public InteractionResult
a(bfz arg0)
useOn(UseOnContext arg0)
method_7981(class_1838 arg0)
m_bqtrkfmc(C_yyklzime arg0)
useOnBlock(ItemUsageContext context)
func_196084_a(ItemUseContext arg0)
placeItem(ItemActionContext arg0)
public float
a(byj arg0)
getDestroySpeed(BlockState arg0)
method_7924(class_2680 arg0)
m_hawykozc(C_txtbiemp arg0)
getMiningSpeed(BlockState state)
func_150997_a(BlockState arg0)
public InteractionResultHolder<ItemStack>
a(bjw arg0, ayj arg1, ajk 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)
func_77957_a(World arg0, PlayerEntity arg1, Hand arg2)
public ItemStack
a(bjw arg0, akz 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)
func_77950_b(World arg0, LivingEntity arg1)
public CompoundTag
b(jt arg0)
save(CompoundTag arg0)
method_7953(class_2487 arg0)
m_qocirsqp(C_hhlwcnih arg0)
toTag(CompoundTag tag)
func_77955_b(CompoundNBT arg0)
save(NBTTagCompound arg0)
public int
c()
getMaxStackSize()
method_7914()
m_rmdiknvo()
getMaxCount()
func_77976_d()
getMaxStackSize()
public boolean
d()
isStackable()
method_7946()
m_sjztniec()
isStackable()
func_77985_e()
isStackable()
public boolean
e()
isDamageableItem()
method_7963()
m_iculdxhv()
isDamageable()
func_77984_f()
public boolean
f()
isDamaged()
method_7986()
m_nosilizp()
isDamaged()
func_77951_h()
public int
g()
getDamageValue()
method_7919()
m_arqkxkec()
getDamage()
func_77952_i()
getDamage()
public void
b(int arg0)
setDamageValue(int arg0)
method_7974(int arg0)
m_rghjmiwl(int arg0)
setDamage(int damage)
func_196085_b(int arg0)
setDamage(int arg0)
public int
h()
getMaxDamage()
method_7936()
m_fdjdvcpt()
getMaxDamage()
func_77958_k()
public boolean
a(int arg0, Random arg1, xe arg2)
hurt(int arg0, Random arg1, ServerPlayer arg2)
method_7970(int arg0, Random arg1, class_3222 arg2)
m_jvrwvztb(int arg0, Random arg1, C_mxrobsgg arg2)
damage(int amount, Random random, ServerPlayerEntity player)
func_96631_a(int arg0, Random arg1, ServerPlayerEntity arg2)
isDamaged(int arg0, Random arg1, EntityPlayer arg2)
public <T extends LivingEntity> void
a(int arg0, T arg1, Consumer<T> arg2)
hurtAndBreak(int arg0, T arg1, Consumer<T> arg2)
method_7956(int arg0, T arg1, Consumer<T> arg2)
m_fzgneobh(int arg0, T arg1, Consumer<T> arg2)
damage(int amount, T entity, Consumer<T> breakCallback)
func_222118_a(int arg0, T arg1, Consumer<T> arg2)
damage(int arg0, T arg1, Consumer<T> arg2)
public void
a(akz arg0, ayj 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 attacker)
func_77961_a(LivingEntity arg0, PlayerEntity arg1)
public void
a(bjw arg0, byj arg1, fk arg2, ayj 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)
func_179548_a(World arg0, BlockState arg1, BlockPos arg2, PlayerEntity arg3)
public boolean
b(byj arg0)
canDestroySpecial(BlockState arg0)
method_7951(class_2680 arg0)
m_jsrrhdsg(C_txtbiemp arg0)
isEffectiveOn(BlockState state)
func_150998_b(BlockState arg0)
canDestroySpecialBlock(IBlockData arg0)
public boolean
a(ayj arg0, akz arg1, ajk arg2)
interactEnemy(Player arg0, LivingEntity arg1, InteractionHand arg2)
method_7920(class_1657 arg0, class_1309 arg1, class_1268 arg2)
m_cxygjcnp(C_jzrpycqo arg0, C_usxaxydn arg1, C_laxmzoqs arg2)
useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)
func_111282_a(PlayerEntity arg0, LivingEntity arg1, Hand arg2)
public ItemStack
i()
copy()
method_7972()
m_jowurkjh()
copy()
func_77946_l()
cloneItemStack()
public static boolean
a(ben arg0, ben arg1)
tagMatches(ItemStack arg0, ItemStack arg1)
method_7975(class_1799 arg0, class_1799 arg1)
m_jheghzbi(C_sddaxwyk arg0, C_sddaxwyk arg1)
areTagsEqual(ItemStack left, ItemStack right)
func_77970_a(ItemStack arg0, ItemStack arg1)
equals(ItemStack arg0, ItemStack arg1)
public static boolean
b(ben arg0, ben arg1)
matches(ItemStack arg0, ItemStack arg1)
method_7973(class_1799 arg0, class_1799 arg1)
m_vflauzvi(C_sddaxwyk arg0, C_sddaxwyk arg1)
areEqualIgnoreDamage(ItemStack left, ItemStack right)
func_77989_b(ItemStack arg0, ItemStack arg1)
matches(ItemStack arg0, ItemStack arg1)
private boolean
c(ben arg0)
matches(ItemStack arg0)
method_7968(class_1799 arg0)
m_lgonwtuo(C_sddaxwyk arg0)
isEqualIgnoreDamage(ItemStack stack)
func_77959_d(ItemStack arg0)
public static boolean
c(ben arg0, ben arg1)
isSame(ItemStack arg0, ItemStack arg1)
method_7984(class_1799 arg0, class_1799 arg1)
m_yfrwvxps(C_sddaxwyk arg0, C_sddaxwyk arg1)
areItemsEqualIgnoreDamage(ItemStack left, ItemStack right)
func_179545_c(ItemStack arg0, ItemStack arg1)
public static boolean
d(ben arg0, ben arg1)
isSameIgnoreDurability(ItemStack arg0, ItemStack arg1)
method_7987(class_1799 arg0, class_1799 arg1)
m_ssxgtqcv(C_sddaxwyk arg0, C_sddaxwyk arg1)
areItemsEqual(ItemStack left, ItemStack right)
func_185132_d(ItemStack arg0, ItemStack arg1)
public boolean
a(ben arg0)
sameItem(ItemStack arg0)
method_7962(class_1799 arg0)
m_zdakcmyc(C_sddaxwyk arg0)
isItemEqualIgnoreDamage(ItemStack stack)
func_77969_a(ItemStack arg0)
doMaterialsMatch(ItemStack arg0)
public boolean
b(ben arg0)
sameItemStackIgnoreDurability(ItemStack arg0)
method_7929(class_1799 arg0)
m_vcilubbd(C_sddaxwyk arg0)
isItemEqual(ItemStack stack)
func_185136_b(ItemStack arg0)
public String
j()
getDescriptionId()
method_7922()
m_xlccoiox()
getTranslationKey()
func_77977_a()
public void
a(bjw arg0, akq 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)
func_77945_a(World arg0, Entity arg1, int arg2, boolean arg3)
public void
a(bjw arg0, ayj 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)
onCraft(World world, PlayerEntity player, int amount)
func_77980_a(World arg0, PlayerEntity arg1, int arg2)
public int
k()
getUseDuration()
method_7935()
m_fggiijyg()
getMaxUseTime()
func_77988_m()
public UseAnim
l()
getUseAnimation()
method_7976()
m_dfvhukte()
getUseAction()
func_77975_n()
public void
a(bjw arg0, akz 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)
func_77974_b(World arg0, LivingEntity arg1, int arg2)
public boolean
m()
useOnRelease()
method_7967()
m_biphgkrd()
isUsedOnRelease()
func_222122_m()
public boolean
n()
hasTag()
method_7985()
m_fzdiygap()
hasTag()
func_77942_o()
hasTag()
public CompoundTag
o()
getTag()
method_7969()
m_eupjqzfc()
getTag()
func_77978_p()
getTag()
public CompoundTag
p()
getOrCreateTag()
method_7948()
m_hijqqkvs()
getOrCreateTag()
func_196082_o()
getOrCreateTag()
public CompoundTag
a(String arg0)
getOrCreateTagElement(String arg0)
method_7911(String arg0)
m_xmgboejb(String arg0)
getOrCreateSubTag(String key)
func_190925_c(String arg0)
public CompoundTag
b(String arg0)
getTagElement(String arg0)
method_7941(String arg0)
m_ujwwfdid(String arg0)
getSubTag(String key)
func_179543_a(String arg0)
public void
c(String arg0)
removeTagKey(String arg0)
method_7983(String arg0)
m_qcvtavtd(String arg0)
removeSubTag(String key)
func_196083_e(String arg0)
removeTag(String arg0)
public ListTag
q()
getEnchantmentTags()
method_7921()
m_vtkhlzwi()
getEnchantments()
func_77986_q()
getEnchantments()
public void
c(jt arg0)
setTag(CompoundTag arg0)
method_7980(class_2487 arg0)
m_aagwvrti(C_hhlwcnih arg0)
setTag(CompoundTag tag)
func_77982_d(CompoundNBT arg0)
setTag(NBTTagCompound arg0)
public Component
r()
getHoverName()
method_7964()
m_xvzvtufo()
getName()
func_200301_q()
getName()
public ItemStack
a(lf arg0)
setHoverName(Component arg0)
method_7977(class_2561 arg0)
m_sxojkkcd(C_rdaqiwdt arg0)
setCustomName(Text name)
func_200302_a(ITextComponent arg0)
public void
s()
resetHoverName()
method_7925()
m_sfljcwwq()
removeCustomName()
func_135074_t()
public boolean
t()
hasCustomHoverName()
method_7938()
m_oicnibsx()
hasCustomName()
func_82837_s()
hasName()
public boolean
u()
hasFoil()
method_7958()
m_vncsdaoo()
hasEnchantmentGlint()
func_77962_s()
public Rarity
v()
getRarity()
method_7932()
m_yrbtnzbt()
getRarity()
func_77953_t()
public boolean
w()
isEnchantable()
method_7923()
m_gwzgwsrv()
isEnchantable()
func_77956_u()
canEnchant()
public void
a(bhx 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)
func_77966_a(Enchantment arg0, int arg1)
addEnchantment(Enchantment arg0, int arg1)
public boolean
x()
isEnchanted()
method_7942()
m_zszkcovn()
hasEnchantments()
func_77948_v()
hasEnchantments()
public void
a(String arg0, kj arg1)
addTagElement(String arg0, Tag arg1)
method_7959(String arg0, class_2520 arg1)
m_umilgnei(String arg0, C_bkvarokd arg1)
putSubTag(String key, Tag tag)
func_77983_a(String arg0, INBT arg1)
public boolean
y()
isFramed()
method_7961()
m_tcgbrtym()
isInFrame()
func_82839_y()
public void
a(avr arg0)
setFramed(ItemFrame arg0)
method_7943(class_1533 arg0)
m_xgbdngol(C_hywnolpn arg0)
setFrame(ItemFrameEntity frame)
func_82842_a(ItemFrameEntity arg0)
public ItemFrame
z()
getFrame()
method_7945()
m_sqtvrdfj()
getFrame()
func_82836_z()
public int
A()
getBaseRepairCost()
method_7928()
m_qetfuzie()
getRepairCost()
func_82838_A()
getRepairCost()
public void
c(int arg0)
setRepairCost(int arg0)
method_7927(int arg0)
m_mlonpdxj(int arg0)
setRepairCost(int repairCost)
func_82841_c(int arg0)
setRepairCost(int arg0)
public com.google.common.collect.Multimap<String, AttributeModifier>
a(akv arg0)
getAttributeModifiers(EquipmentSlot arg0)
method_7926(class_1304 arg0)
m_afvbohjf(C_yuycoehb arg0)
getAttributeModifiers(EquipmentSlot slot)
func_111283_C(EquipmentSlotType arg0)
public void
a(String arg0, als arg1, akv arg2)
addAttributeModifier(String arg0, AttributeModifier arg1, EquipmentSlot arg2)
method_7916(String arg0, class_1322 arg1, class_1304 arg2)
m_rdrbrcjp(String arg0, C_hdbqsqsm arg1, C_yuycoehb arg2)
addAttributeModifier(String name, EntityAttributeModifier modifier, EquipmentSlot slot)
func_185129_a(String arg0, AttributeModifier arg1, EquipmentSlotType arg2)
public Component
B()
getDisplayName()
method_7954()
m_ihhujymf()
toHoverableText()
func_151000_E()
private static boolean
a(byn arg0, byn arg1)
areSameBlocks(BlockInWorld arg0, BlockInWorld arg1)
method_7918(class_2694 arg0, class_2694 arg1)
m_vagcpmdi(C_gogfiawf arg0, C_gogfiawf arg1)
areBlocksEqual(CachedBlockPosition first, CachedBlockPosition second)
func_206846_a(CachedBlockInfo arg0, CachedBlockInfo arg1)
public boolean
a(abb arg0, byn arg1)
hasAdventureModeBreakTagForBlock(TagManager arg0, BlockInWorld arg1)
method_7940(class_3505 arg0, class_2694 arg1)
m_lrvsfwxj(C_urxtamub arg0, C_gogfiawf arg1)
canDestroy(RegistryTagManager manager, CachedBlockPosition pos)
func_206848_a(NetworkTagManager arg0, CachedBlockInfo arg1)
public boolean
b(abb arg0, byn arg1)
hasAdventureModePlaceTagForBlock(TagManager arg0, BlockInWorld arg1)
method_7944(class_3505 arg0, class_2694 arg1)
m_ardanyfx(C_urxtamub arg0, C_gogfiawf arg1)
canPlaceOn(RegistryTagManager manager, CachedBlockPosition pos)
func_206847_b(NetworkTagManager arg0, CachedBlockInfo arg1)
public int
C()
getPopTime()
method_7965()
m_pwfafzwz()
getCooldown()
func_190921_D()
public void
d(int arg0)
setPopTime(int arg0)
method_7912(int arg0)
m_utrmkjnp(int arg0)
setCooldown(int cooldown)
func_190915_d(int arg0)
public int
D()
getCount()
method_7947()
m_uglewown()
getCount()
func_190916_E()
getCount()
public void
e(int arg0)
setCount(int arg0)
method_7939(int arg0)
m_bpcuczsh(int arg0)
setCount(int count)
func_190920_e(int arg0)
setCount(int arg0)
public void
f(int arg0)
grow(int arg0)
method_7933(int arg0)
m_nivkbhlq(int arg0)
increment(int amount)
func_190917_f(int arg0)
add(int arg0)
public void
g(int arg0)
shrink(int arg0)
method_7934(int arg0)
m_whunqrso(int arg0)
decrement(int amount)
func_190918_g(int arg0)
subtract(int arg0)
public void
b(bjw arg0, akz 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)
func_222121_b(World arg0, LivingEntity arg1, int arg2)
public boolean
E()
isEdible()
method_19267()
m_eidhgyra()
isFood()
func_222117_E()
public SoundEvent
F()
getDrinkingSound()
method_21832()
m_vhnmbpvg()
getDrinkSound()
func_226629_F_()
public SoundEvent
G()
getEatingSound()
method_21833()
m_mwztqdza()
getEatSound()
func_226630_G_()
public List<Component>
a(ayj arg0, bfw arg1)
getTooltipLines(Player arg0, TooltipFlag arg1)
method_7950(class_1657 arg0, class_1836 arg1)
m_ywdqmcbk(C_jzrpycqo arg0, C_taebrtdw arg1)
getTooltip(PlayerEntity player, TooltipContext context)
func_82840_a(PlayerEntity arg0, ITooltipFlag arg1)
public static void
a(List<lf> arg0, jz arg1)
appendEnchantmentNames(List<Component> arg0, ListTag arg1)
method_17870(List<class_2561> arg0, class_2499 arg1)
m_nsgmohgt(List<C_rdaqiwdt> arg0, C_hqhtfwlr arg1)
appendEnchantments(List<Text> tooltip, ListTag enchantments)
func_222120_a(List<ITextComponent> arg0, ListNBT arg1)
private static Collection<Component>
d(String arg0)
expandBlockState(String arg0)
method_7937(String arg0)
m_aowgnagv(String arg0)
parseBlockTag(String tag)
func_206845_f(String arg0)