net.minecraft.item

public final class ItemStack

aip
net.minecraft.class_1071
net.minecraft.item.ItemStack
net.minecraft.item.ItemStack
net.minecraft.item.ItemStack

Field summary

Modifier and TypeField
public static final ItemStack
a
field_15108
EMPTY
field_190927_a
EMPTY
public static final DecimalFormat
b
field_6949
MODIFIER_FORMAT
field_111284_a
DECIMALFORMAT
private int
c
field_4376
size
field_77994_a
stackSize
private int
d
field_4377
popAnimationTime
field_77992_b
animationsToGo
private final Item
e
field_6974
item
field_151002_e
item
private NbtCompound
f
field_4379
nbt
field_77990_d
stackTagCompound
private boolean
g
field_15109
cachedIsEmpty
field_190928_g
isEmpty
private int
h
field_4380
metadata
field_77991_e
itemDamage
private ItemFrameEntity
i
field_5446
itemFrame
field_82843_f
itemFrame
private Block
j
field_12184
cachedMineBlockOverride
field_179552_h
canDestroyCacheBlock
private boolean
k
field_12185
cachedMineBlockOverrideResult
field_179553_i
canDestroyCacheResult
private Block
l
field_12186
cachedPlaceOnBlockOverride
field_179550_j
canPlaceOnCacheBlock
private boolean
m
field_12187
cachedPlaceOnBlockOverrideResult
field_179551_k
canPlaceOnCacheResult

Constructor summary

ModifierConstructor
public (Block block)
public (Block block, int size)
public (Block block, int size, int metadata)
public (Item item)
public (Item item, int size)
public (Item item, int size, int metadata)
public (NbtCompound nbt)

Method summary

Modifier and TypeMethod
private void
F()
method_13653()
cacheIsEmpty()
func_190923_F()
updateEmptyState()
public boolean
b()
method_13654()
isEmpty()
func_190926_b()
isEmpty()
public static void
a(ry arg0)
method_13311(class_2934 arg0)
registerSchema(DataFixerUpper dfu)
func_189868_a(DataFixer arg0)
registerFixes(DataFixer fixer)
public ItemStack
a(int arg0)
method_3405(int arg0)
split(int amount)
func_77979_a(int arg0)
splitStack(int amount)
public Item
c()
method_3421()
getItem()
func_77973_b()
getItem()
public InteractionResult
a(aed arg0, amu arg1, et arg2, ub arg3, fa arg4, float arg5, float arg6, float arg7)
method_11394(class_988 arg0, class_1150 arg1, class_2552 arg2, class_2961 arg3, class_1354 arg4, float arg5, float arg6, float arg7)
useOn(PlayerEntity player, World world, BlockPos pos, InteractionHand hand, Direction face, float faceX, float faceY, float faceZ)
func_179546_a(EntityPlayer arg0, World arg1, BlockPos arg2, EnumHand arg3, EnumFacing arg4, float arg5, float arg6, float arg7)
onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
public float
a(awt arg0)
method_11391(class_2232 arg0)
getMiningSpeed(BlockState state)
func_150997_a(IBlockState arg0)
getDestroySpeed(IBlockState blockIn)
public InteractionResultHolder<ItemStack>
a(amu arg0, aed arg1, ub arg2)
method_11390(class_1150 arg0, class_988 arg1, class_2961 arg2)
startUsing(World world, PlayerEntity player, InteractionHand hand)
func_77957_a(World arg0, EntityPlayer arg1, EnumHand arg2)
useItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand hand)
public ItemStack
a(amu arg0, vp arg1)
method_11388(class_1150 arg0, class_1699 arg1)
finishUsing(World world, LivingEntity entity)
func_77950_b(World arg0, EntityLivingBase arg1)
onItemUseFinish(World worldIn, EntityLivingBase entityLiving)
public NbtCompound
a(fy arg0)
method_3424(class_322 arg0)
writeNbt(NbtCompound nbt)
func_77955_b(NBTTagCompound arg0)
writeToNBT(NBTTagCompound nbt)
public int
d()
method_3432()
getMaxSize()
func_77976_d()
getMaxStackSize()
public boolean
e()
method_3435()
isStackable()
func_77985_e()
isStackable()
public boolean
f()
method_3436()
isDamageable()
func_77984_f()
isItemStackDamageable()
public boolean
g()
method_3437()
hasCustomData()
func_77981_g()
getHasSubtypes()
public boolean
h()
method_3438()
isDamaged()
func_77951_h()
isItemDamaged()
public int
i()
method_3439()
getDamage()
func_77952_i()
getItemDamage()
public int
j()
method_3440()
getMetadata()
func_77960_j()
getMetadata()
public void
b(int arg0)
method_3422(int arg0)
setDamage(int damage)
func_77964_b(int arg0)
setItemDamage(int meta)
public int
k()
method_3441()
getMaxDamage()
func_77958_k()
getMaxDamage()
public boolean
a(int arg0, Random arg1, oq arg2)
method_5464(int arg0, Random arg1, class_798 arg2)
takeDamage(int amount, Random random, ServerPlayerEntity player)
func_96631_a(int arg0, Random arg1, EntityPlayerMP arg2)
attemptDamageItem(int amount, Random rand, EntityPlayerMP damager)
public void
a(int arg0, vp arg1)
method_6328(int arg0, class_1699 arg1)
takeDamageAndBreak(int amount, LivingEntity holder)
func_77972_a(int arg0, EntityLivingBase arg1)
damageItem(int amount, EntityLivingBase entityIn)
public void
a(vp arg0, aed arg1)
method_3412(class_1699 arg0, class_988 arg1)
attack(LivingEntity target, PlayerEntity attacker)
func_77961_a(EntityLivingBase arg0, EntityPlayer arg1)
hitEntity(EntityLivingBase entityIn, EntityPlayer playerIn)
public void
a(amu arg0, awt arg1, et arg2, aed arg3)
method_11306(class_1150 arg0, class_2232 arg1, class_2552 arg2, class_988 arg3)
mineBlock(World world, BlockState state, BlockPos pos, PlayerEntity player)
func_179548_a(World arg0, IBlockState arg1, BlockPos arg2, EntityPlayer arg3)
onBlockDestroyed(World worldIn, IBlockState blockIn, BlockPos pos, EntityPlayer playerIn)
public boolean
b(awt arg0)
method_11396(class_2232 arg0)
canMineBlock(BlockState state)
func_150998_b(IBlockState arg0)
canHarvestBlock(IBlockState blockIn)
public boolean
a(aed arg0, vp arg1, ub arg2)
method_6329(class_988 arg0, class_1699 arg1, class_2961 arg2)
interact(PlayerEntity player, LivingEntity entity, InteractionHand hand)
func_111282_a(EntityPlayer arg0, EntityLivingBase arg1, EnumHand arg2)
interactWithEntity(EntityPlayer playerIn, EntityLivingBase entityIn, EnumHand hand)
public ItemStack
l()
method_3442()
copy()
func_77946_l()
copy()
public static boolean
a(aip arg0, aip arg1)
method_3415(class_1071 arg0, class_1071 arg1)
matchesNbt(ItemStack stack1, ItemStack stack2)
func_77970_a(ItemStack arg0, ItemStack arg1)
areItemStackTagsEqual(ItemStack stackA, ItemStack stackB)
public static boolean
b(aip arg0, aip arg1)
method_3426(class_1071 arg0, class_1071 arg1)
matches(ItemStack stack1, ItemStack stack2)
func_77989_b(ItemStack arg0, ItemStack arg1)
areItemStacksEqual(ItemStack stackA, ItemStack stackB)
private boolean
d(aip arg0)
method_3434(class_1071 arg0)
matches(ItemStack other)
func_77959_d(ItemStack arg0)
isItemStackEqual(ItemStack other)
public static boolean
c(aip arg0, aip arg1)
method_11311(class_1071 arg0, class_1071 arg1)
matchesItem(ItemStack stack1, ItemStack stack2)
func_179545_c(ItemStack arg0, ItemStack arg1)
areItemsEqual(ItemStack stackA, ItemStack stackB)
public static boolean
d(aip arg0, aip arg1)
method_11397(class_1071 arg0, class_1071 arg1)
matchesItemIgnoreDamage(ItemStack stack1, ItemStack stack2)
func_185132_d(ItemStack arg0, ItemStack arg1)
areItemsEqualIgnoreDurability(ItemStack stackA, ItemStack stackB)
public boolean
a(aip arg0)
method_3414(class_1071 arg0)
matchesItem(ItemStack other)
func_77969_a(ItemStack arg0)
isItemEqual(ItemStack other)
public boolean
b(aip arg0)
method_11395(class_1071 arg0)
matchesItemIgnoreDamage(ItemStack other)
func_185136_b(ItemStack arg0)
isItemEqualIgnoreDurability(ItemStack stack)
public String
a()
method_3404()
getTranslationKey()
func_77977_a()
getTranslationKey()
public void
a(amu arg0, vg arg1, int arg2, boolean arg3)
method_3418(class_1150 arg0, class_864 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)
updateAnimation(World worldIn, Entity entityIn, int inventorySlot, boolean isCurrentItem)
public void
a(amu arg0, aed arg1, int arg2)
method_3420(class_1150 arg0, class_988 arg1, int arg2)
onResult(World world, PlayerEntity player, int amount)
func_77980_a(World arg0, EntityPlayer arg1, int arg2)
onCrafting(World worldIn, EntityPlayer playerIn, int amount)
public int
m()
method_3443()
getUseDuration()
func_77988_m()
getMaxItemUseDuration()
public UseAction
n()
method_3444()
getUseAction()
func_77975_n()
getItemUseAction()
public void
a(amu arg0, vp arg1, int arg2)
method_11389(class_1150 arg0, class_1699 arg1, int arg2)
stopUsing(World world, LivingEntity entity, int remainingUseTime)
func_77974_b(World arg0, EntityLivingBase arg1, int arg2)
onPlayerStoppedUsing(World worldIn, EntityLivingBase entityLiving, int timeLeft)
public boolean
o()
method_3445()
hasNbt()
func_77942_o()
hasTagCompound()
public NbtCompound
p()
method_3446()
getNbt()
func_77978_p()
getTagCompound()
public NbtCompound
c(String arg0)
method_13655(String arg0)
getOrCreateNbt(String key)
func_190925_c(String arg0)
getOrCreateSubCompound(String key)
public NbtCompound
d(String arg0)
method_13657(String arg0)
getNbt(String key)
func_179543_a(String arg0)
getSubCompound(String key)
public void
e(String arg0)
method_13659(String arg0)
removeNbt(String key)
func_190919_e(String arg0)
removeSubCompound(String key)
public NbtList
q()
method_3447()
getEnchantments()
func_77986_q()
getEnchantmentTagList()
public void
b(fy arg0)
method_3433(class_322 arg0)
setNbt(NbtCompound nbt)
func_77982_d(NBTTagCompound arg0)
setTagCompound(NBTTagCompound nbt)
public String
r()
method_4623()
getHoverName()
func_82833_r()
getDisplayName()
public ItemStack
f(String arg0)
method_13661(String arg0)
setLocalizedName(String name)
func_190924_f(String arg0)
setTranslatableName(String arg0)
public ItemStack
g(String arg0)
method_6373(String arg0)
setHoverName(String name)
func_151001_c(String arg0)
setStackDisplayName(String displayName)
public void
s()
method_6330()
resetHoverName()
func_135074_t()
clearCustomName()
public boolean
t()
method_4624()
hasCustomHoverName()
func_82837_s()
hasDisplayName()
public Rarity
v()
method_3450()
getRarity()
func_77953_t()
getRarity()
public boolean
w()
method_3451()
isEnchantable()
func_77956_u()
isItemEnchantable()
public void
a(alk arg0, int arg1)
method_3416(class_1127 arg0, int arg1)
addEnchantment(Enchantment enchantment, int level)
func_77966_a(Enchantment arg0, int arg1)
addEnchantment(Enchantment ench, int level)
public boolean
x()
method_3452()
hasEnchantments()
func_77948_v()
isItemEnchanted()
public void
a(String arg0, gn arg1)
method_3409(String arg0, class_605 arg1)
addToNbt(String key, NbtElement nbt)
func_77983_a(String arg0, NBTBase arg1)
setTagInfo(String key, NBTBase value)
public boolean
y()
method_4625()
canUseOnBlockInAdventureMode()
func_82835_x()
canEditBlocks()
public boolean
z()
method_4626()
isInItemFrame()
func_82839_y()
isOnItemFrame()
public void
a(acb arg0)
method_4619(class_1397 arg0)
setItemFrame(ItemFrameEntity itemFrame)
func_82842_a(EntityItemFrame arg0)
setItemFrame(EntityItemFrame frame)
public ItemFrameEntity
A()
method_4627()
getItemFrame()
func_82836_z()
getItemFrame()
public int
B()
method_4618()
getRepairCost()
func_82838_A()
getRepairCost()
public void
c(int arg0)
method_4621(int arg0)
setRepairCost(int cost)
func_82841_c(int arg0)
setRepairCost(int cost)
public com.google.common.collect.Multimap<String, AttributeModifier>
a(vl arg0)
method_11393(class_2968 arg0)
getAttributeModifiers(EquipmentSlot slot)
func_111283_C(EntityEquipmentSlot arg0)
getAttributeModifiers(EntityEquipmentSlot equipmentSlot)
public void
a(String arg0, we arg1, vl arg2)
method_11392(String arg0, class_1704 arg1, class_2968 arg2)
addAttributeModifier(String attribute, AttributeModifier modifier, EquipmentSlot slot)
func_185129_a(String arg0, AttributeModifier arg1, EntityEquipmentSlot arg2)
addAttributeModifier(String attributeName, AttributeModifier modifier, EntityEquipmentSlot equipmentSlot)
public Text
C()
method_6371()
getDisplayName()
func_151000_E()
getTextComponent()
public boolean
a(aow arg0)
method_11309(class_197 arg0)
hasMineBlockOverride(Block block)
func_179544_c(Block arg0)
canDestroy(Block blockIn)
public boolean
b(aow arg0)
method_11312(class_197 arg0)
hasPlaceOnBlockOverride(Block block)
func_179547_d(Block arg0)
canPlaceOn(Block blockIn)
public int
D()
method_13651()
getPopAnimationTime()
func_190921_D()
getAnimationsToGo()
public void
d(int arg0)
method_13656(int arg0)
setPopAnimationTime(int popAnimationTime)
func_190915_d(int arg0)
setAnimationsToGo(int animations)
public int
E()
method_13652()
getSize()
func_190916_E()
getCount()
public void
e(int arg0)
method_13658(int arg0)
setSize(int size)
func_190920_e(int arg0)
setCount(int size)
public void
f(int arg0)
method_13660(int arg0)
increase(int amount)
func_190917_f(int arg0)
grow(int quantity)
public void
g(int arg0)
method_13662(int arg0)
decrease(int amount)
func_190918_g(int arg0)
shrink(int quantity)
public List<String>
a(aed arg0, akb arg1)
method_14235(class_988 arg0, class_3191 arg1)
getTooltip(PlayerEntity player, TooltipFlag flag)
func_82840_a(EntityPlayer arg0, ITooltipFlag arg1)
getTooltip(EntityPlayer playerIn, ITooltipFlag advanced)
public boolean
u()
method_3449()
hasEnchantmentGlint()
func_77962_s()
hasEffect()