net.minecraft.item

public final class ItemStack

bcb
net.minecraft.class_1799
net.minecraft.item.ItemStack
net.minecraft.item.ItemStack
net.minecraft.item.ItemStack

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
field_8033
LOGGER
field_199558_c
field_199558_c
public static final ItemStack
a
field_8037
EMPTY
field_190927_a
field_190927_a
public static final DecimalFormat
b
field_8029
MODIFIER_FORMAT
field_111284_a
field_111284_a
private int
d
field_8031
size
field_77994_a
field_77994_a
private int
e
field_8030
popAnimationTime
field_77992_b
field_77992_b
private final Item
f
field_8038
item
field_151002_e
field_151002_e
private NbtCompound
g
field_8040
nbt
field_77990_d
field_77990_d
private boolean
h
field_8036
cachedIsEmpty
field_190928_g
field_190928_g
private ItemFrameEntity
i
field_8041
itemFrame
field_82843_f
field_82843_f
private BlockPointer
j
field_8039
cachedMineBlockOverride
field_179552_h
field_179552_h
private boolean
k
field_8035
cachedMineBlockOverrideResult
field_179553_i
field_179553_i
private BlockPointer
l
field_8032
cachedPlaceOnBlockOverride
field_179550_j
field_179550_j
private boolean
m
field_8034
cachedPlaceOnBlockOverrideResult
field_179551_k
field_179551_k

Constructor summary

ModifierConstructor
public (ItemLike arg0)
public (ItemLike item, int size)
private (NbtCompound nbt)

Method summary

Modifier and TypeMethod
private static DecimalFormat
F()
method_7931()
getAttributeDecimalFormat()
func_208306_D()
createAttributeModifierDecimalFormat()
private void
G()
method_7957()
cacheIsEmpty()
func_190923_F()
updateEmptyState()
public static ItemStack
a(ib arg0)
method_7915(class_2487 arg0)
fromNbt(NbtCompound nbt)
func_199557_a(CompoundNBT arg0)
read(CompoundNBT compound)
public boolean
a()
method_7960()
isEmpty()
func_190926_b()
isEmpty()
public ItemStack
a(int arg0)
method_7971(int arg0)
split(int amount)
func_77979_a(int arg0)
split(int amount)
public Item
b()
method_7909()
getItem()
func_77973_b()
getItem()
public InteractionResult
a(bdm arg0)
method_7981(class_1838 arg0)
useOn(ItemUseContext ctx)
func_196084_a(ItemUseContext arg0)
onItemUse(ItemUseContext context)
public float
a(bvk arg0)
method_7924(class_2680 arg0)
getMiningSpeed(BlockState state)
func_150997_a(BlockState arg0)
getDestroySpeed(BlockState blockIn)
public InteractionResultHolder<ItemStack>
a(bhi arg0, avy arg1, ahc arg2)
method_7913(class_1937 arg0, class_1657 arg1, class_1268 arg2)
startUsing(World world, PlayerEntity player, InteractionHand hand)
func_77957_a(World arg0, PlayerEntity arg1, Hand arg2)
useItemRightClick(World worldIn, PlayerEntity playerIn, Hand hand)
public ItemStack
a(bhi arg0, air arg1)
method_7910(class_1937 arg0, class_1309 arg1)
finishUsing(World world, LivingEntity entity)
func_77950_b(World arg0, LivingEntity arg1)
onItemUseFinish(World worldIn, LivingEntity entityLiving)
public NbtCompound
b(ib arg0)
method_7953(class_2487 arg0)
writeNbt(NbtCompound nbt)
func_77955_b(CompoundNBT arg0)
write(CompoundNBT nbt)
public int
c()
method_7914()
getMaxSize()
func_77976_d()
getMaxStackSize()
public boolean
d()
method_7946()
isStackable()
func_77985_e()
isStackable()
public boolean
e()
method_7963()
isDamageable()
func_77984_f()
isDamageable()
public boolean
f()
method_7986()
isDamaged()
func_77951_h()
isDamaged()
public int
g()
method_7919()
getDamage()
func_77952_i()
getDamage()
public void
b(int arg0)
method_7974(int arg0)
setDamage(int damage)
func_196085_b(int arg0)
setDamage(int damage)
public int
h()
method_7936()
getMaxDamage()
func_77958_k()
getMaxDamage()
public boolean
a(int arg0, Random arg1, vh arg2)
method_7970(int arg0, Random arg1, class_3222 arg2)
takeDamage(int amount, Random random, ServerPlayerEntity player)
func_96631_a(int arg0, Random arg1, ServerPlayerEntity arg2)
attemptDamageItem(int amount, Random rand, ServerPlayerEntity damager)
public <T extends LivingEntity> void
a(int arg0, T arg1, Consumer<T> arg2)
method_7956(int arg0, T arg1, Consumer<T> arg2)
takeDamageAndBreak(int arg0, T arg1, Consumer<T> arg2)
func_222118_a(int arg0, T arg1, Consumer<T> arg2)
func_222118_a(int arg0, T arg1, Consumer<T> arg2)
public void
a(air arg0, avy arg1)
method_7979(class_1309 arg0, class_1657 arg1)
attack(LivingEntity target, PlayerEntity attacker)
func_77961_a(LivingEntity arg0, PlayerEntity arg1)
hitEntity(LivingEntity entityIn, PlayerEntity playerIn)
public void
a(bhi arg0, bvk arg1, ev arg2, avy arg3)
method_7952(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1657 arg3)
mineBlock(World world, BlockState state, BlockPos pos, PlayerEntity player)
func_179548_a(World arg0, BlockState arg1, BlockPos arg2, PlayerEntity arg3)
onBlockDestroyed(World worldIn, BlockState blockIn, BlockPos pos, PlayerEntity playerIn)
public boolean
b(bvk arg0)
method_7951(class_2680 arg0)
canMineBlock(BlockState state)
func_150998_b(BlockState arg0)
canHarvestBlock(BlockState blockIn)
public boolean
a(avy arg0, air arg1, ahc arg2)
method_7920(class_1657 arg0, class_1309 arg1, class_1268 arg2)
interact(PlayerEntity player, LivingEntity entity, InteractionHand hand)
func_111282_a(PlayerEntity arg0, LivingEntity arg1, Hand arg2)
interactWithEntity(PlayerEntity playerIn, LivingEntity entityIn, Hand hand)
public ItemStack
i()
method_7972()
copy()
func_77946_l()
copy()
public static boolean
a(bcb arg0, bcb arg1)
method_7975(class_1799 arg0, class_1799 arg1)
matchesNbt(ItemStack stack1, ItemStack stack2)
func_77970_a(ItemStack arg0, ItemStack arg1)
areItemStackTagsEqual(ItemStack stackA, ItemStack stackB)
public static boolean
b(bcb arg0, bcb arg1)
method_7973(class_1799 arg0, class_1799 arg1)
matches(ItemStack stack1, ItemStack stack2)
func_77989_b(ItemStack arg0, ItemStack arg1)
areItemStacksEqual(ItemStack stackA, ItemStack stackB)
private boolean
c(bcb arg0)
method_7968(class_1799 arg0)
matches(ItemStack other)
func_77959_d(ItemStack arg0)
isItemStackEqual(ItemStack other)
public static boolean
c(bcb arg0, bcb arg1)
method_7984(class_1799 arg0, class_1799 arg1)
matchesItem(ItemStack stack1, ItemStack stack2)
func_179545_c(ItemStack arg0, ItemStack arg1)
areItemsEqual(ItemStack stackA, ItemStack stackB)
public static boolean
d(bcb arg0, bcb arg1)
method_7987(class_1799 arg0, class_1799 arg1)
matchesItemIgnoreDamage(ItemStack stack1, ItemStack stack2)
func_185132_d(ItemStack arg0, ItemStack arg1)
areItemsEqualIgnoreDurability(ItemStack stackA, ItemStack stackB)
public boolean
a(bcb arg0)
method_7962(class_1799 arg0)
matchesItem(ItemStack other)
func_77969_a(ItemStack arg0)
isItemEqual(ItemStack other)
public boolean
b(bcb arg0)
method_7929(class_1799 arg0)
matchesItemIgnoreDamage(ItemStack other)
func_185136_b(ItemStack arg0)
isItemEqualIgnoreDurability(ItemStack stack)
public String
j()
method_7922()
getTranslationKey()
func_77977_a()
getTranslationKey()
public void
a(bhi arg0, aii arg1, int arg2, boolean arg3)
method_7917(class_1937 arg0, class_1297 arg1, int arg2, boolean arg3)
tick(World world, Entity entity, int slot, boolean selected)
func_77945_a(World arg0, Entity arg1, int arg2, boolean arg3)
inventoryTick(World worldIn, Entity entityIn, int inventorySlot, boolean isCurrentItem)
public void
a(bhi arg0, avy arg1, int arg2)
method_7982(class_1937 arg0, class_1657 arg1, int arg2)
onResult(World world, PlayerEntity player, int amount)
func_77980_a(World arg0, PlayerEntity arg1, int arg2)
onCrafting(World worldIn, PlayerEntity playerIn, int amount)
public int
k()
method_7935()
getUseDuration()
func_77988_m()
getUseDuration()
public UseAction
l()
method_7976()
getUseAction()
func_77975_n()
getUseAction()
public void
a(bhi arg0, air arg1, int arg2)
method_7930(class_1937 arg0, class_1309 arg1, int arg2)
stopUsing(World world, LivingEntity entity, int remainingUseTime)
func_77974_b(World arg0, LivingEntity arg1, int arg2)
onPlayerStoppedUsing(World worldIn, LivingEntity entityLiving, int timeLeft)
public boolean
m()
method_7967()
m_43369743()
func_222122_m()
func_222122_m()
public boolean
n()
method_7985()
hasNbt()
func_77942_o()
hasTag()
public NbtCompound
o()
method_7969()
getNbt()
func_77978_p()
getTag()
public NbtCompound
p()
method_7948()
getOrCreateNbt()
func_196082_o()
getOrCreateTag()
public NbtCompound
a(String arg0)
method_7911(String arg0)
getOrCreateNbt(String key)
func_190925_c(String arg0)
getOrCreateChildTag(String key)
public NbtCompound
b(String arg0)
method_7941(String arg0)
getNbt(String key)
func_179543_a(String arg0)
getChildTag(String key)
public void
c(String arg0)
method_7983(String arg0)
removeNbt(String key)
func_196083_e(String arg0)
removeChildTag(String arg0)
public NbtList
q()
method_7921()
getEnchantments()
func_77986_q()
getEnchantmentTagList()
public void
c(ib arg0)
method_7980(class_2487 arg0)
setNbt(NbtCompound nbt)
func_77982_d(CompoundNBT arg0)
setTag(CompoundNBT nbt)
public Text
r()
method_7964()
getHoverName()
func_200301_q()
getDisplayName()
public ItemStack
a(jm arg0)
method_7977(class_2561 arg0)
setHoverName(Text name)
func_200302_a(ITextComponent arg0)
setDisplayName(ITextComponent name)
public void
s()
method_7925()
resetHoverName()
func_135074_t()
clearCustomName()
public boolean
t()
method_7938()
hasCustomHoverName()
func_82837_s()
hasDisplayName()
public Rarity
v()
method_7932()
getRarity()
func_77953_t()
getRarity()
public boolean
w()
method_7923()
isEnchantable()
func_77956_u()
isEnchantable()
public void
a(bfj arg0, int arg1)
method_7978(class_1887 arg0, int arg1)
addEnchantment(Enchantment enchantment, int level)
func_77966_a(Enchantment arg0, int arg1)
addEnchantment(Enchantment ench, int level)
public boolean
x()
method_7942()
hasEnchantments()
func_77948_v()
isEnchanted()
public void
a(String arg0, is arg1)
method_7959(String arg0, class_2520 arg1)
addToNbt(String key, NbtElement nbt)
func_77983_a(String arg0, INBT arg1)
setTagInfo(String key, INBT value)
public boolean
y()
method_7961()
isInItemFrame()
func_82839_y()
isOnItemFrame()
public void
a(atf arg0)
method_7943(class_1533 arg0)
setItemFrame(ItemFrameEntity itemFrame)
func_82842_a(ItemFrameEntity arg0)
setItemFrame(ItemFrameEntity frame)
public ItemFrameEntity
z()
method_7945()
getItemFrame()
func_82836_z()
getItemFrame()
public int
A()
method_7928()
getRepairCost()
func_82838_A()
getRepairCost()
public void
c(int arg0)
method_7927(int arg0)
setRepairCost(int cost)
func_82841_c(int arg0)
setRepairCost(int cost)
public com.google.common.collect.Multimap<String, AttributeModifier>
a(ain arg0)
method_7926(class_1304 arg0)
getAttributeModifiers(EquipmentSlot slot)
func_111283_C(EquipmentSlotType arg0)
getAttributeModifiers(EquipmentSlotType equipmentSlot)
public void
a(String arg0, ajj arg1, ain arg2)
method_7916(String arg0, class_1322 arg1, class_1304 arg2)
addAttributeModifier(String attribute, AttributeModifier modifier, EquipmentSlot slot)
func_185129_a(String arg0, AttributeModifier arg1, EquipmentSlotType arg2)
addAttributeModifier(String attributeName, AttributeModifier modifier, EquipmentSlotType equipmentSlot)
public Text
B()
method_7954()
getDisplayName()
func_151000_E()
getTextComponent()
private static boolean
a(bvo arg0, bvo arg1)
method_7918(class_2694 arg0, class_2694 arg1)
areBlocksEqual(BlockPointer ptr1, BlockPointer ptr2)
func_206846_a(CachedBlockInfo arg0, CachedBlockInfo arg1)
isStateAndTileEntityEqual(CachedBlockInfo arg0, CachedBlockInfo arg1)
public boolean
a(zd arg0, bvo arg1)
method_7940(class_3505 arg0, class_2694 arg1)
hasMineBlockOverride(TagManager tags, BlockPointer ptr)
func_206848_a(NetworkTagManager arg0, CachedBlockInfo arg1)
canDestroy(NetworkTagManager arg0, CachedBlockInfo arg1)
public boolean
b(zd arg0, bvo arg1)
method_7944(class_3505 arg0, class_2694 arg1)
hasPlaceOnBlockOverride(TagManager tags, BlockPointer ptr)
func_206847_b(NetworkTagManager arg0, CachedBlockInfo arg1)
canPlaceOn(NetworkTagManager arg0, CachedBlockInfo arg1)
public int
C()
method_7965()
getPopAnimationTime()
func_190921_D()
getAnimationsToGo()
public void
d(int arg0)
method_7912(int arg0)
setPopAnimationTime(int popAnimationTime)
func_190915_d(int arg0)
setAnimationsToGo(int animations)
public int
D()
method_7947()
getSize()
func_190916_E()
getCount()
public void
e(int arg0)
method_7939(int arg0)
setSize(int size)
func_190920_e(int arg0)
setCount(int count)
public void
f(int arg0)
method_7933(int arg0)
increase(int amount)
func_190917_f(int arg0)
grow(int count)
public void
g(int arg0)
method_7934(int arg0)
decrease(int amount)
func_190918_g(int arg0)
shrink(int count)
public void
b(bhi arg0, air arg1, int arg2)
method_7949(class_1937 arg0, class_1309 arg1, int arg2)
m_32551016(World arg0, LivingEntity arg1, int arg2)
func_222121_b(World arg0, LivingEntity arg1, int arg2)
func_222121_b(World arg0, LivingEntity arg1, int arg2)
public boolean
E()
method_19267()
m_25277804()
func_222117_E()
func_222117_E()
public List<Text>
a(avy arg0, bdj arg1)
method_7950(class_1657 arg0, class_1836 arg1)
getTooltip(PlayerEntity player, TooltipFlag flag)
func_82840_a(PlayerEntity arg0, ITooltipFlag arg1)
getTooltip(PlayerEntity playerIn, ITooltipFlag advanced)
public static void
a(List<jm> arg0, ii arg1)
method_17870(List<class_2561> arg0, class_2499 arg1)
m_98533522(List<Text> arg0, NbtList arg1)
func_222120_a(List<ITextComponent> arg0, ListNBT arg1)
func_222120_a(List<ITextComponent> arg0, ListNBT arg1)
private static Collection<Text>
d(String arg0)
method_7937(String arg0)
expandBlockState(String s)
func_206845_f(String arg0)
getPlacementTooltip(String stateString)
public boolean
u()
method_7958()
hasEnchantmentGlint()
func_77962_s()
hasEffect()