Class ItemStack


  • public final class ItemStack
    extends java.lang.Object
    • Field Detail

      • stackSize

        public int stackSize
      • animationsToGo

        public int animationsToGo
      • itemID

        public int itemID
    • Constructor Detail

      • ItemStack

        public ItemStack​(Block var1)
      • ItemStack

        public ItemStack​(Block var1,
                         int var2)
      • ItemStack

        public ItemStack​(Block var1,
                         int var2,
                         int var3)
      • ItemStack

        public ItemStack​(Item var1)
      • ItemStack

        public ItemStack​(Item var1,
                         int var2)
      • ItemStack

        public ItemStack​(Item var1,
                         int var2,
                         int var3)
      • ItemStack

        public ItemStack​(int var1,
                         int var2,
                         int var3)
    • Method Detail

      • pushRemapper

        public static void pushRemapper​(it.unimi.dsi.fastutil.ints.Int2IntMap remapper)
      • pushRemapper

        public static void pushRemapper​(NBTTagCompound parentCompound)
      • popRemapper

        public static void popRemapper()
      • splitStack

        public ItemStack splitStack​(int var1)
      • getItem

        public Item getItem()
      • getIconIndex

        @Client
        public @net.minecraft.modding.api.Side.Client int getIconIndex()
      • useItem

        public boolean useItem​(Player var1,
                               World var2,
                               int var3,
                               int var4,
                               int var5,
                               int var6)
      • getStrVsBlock

        public float getStrVsBlock​(Block var1)
      • getMaxStackSize

        public int getMaxStackSize()
      • isStackable

        public boolean isStackable()
      • isItemStackDamageable

        public boolean isItemStackDamageable()
      • getHasSubtypes

        public boolean getHasSubtypes()
      • isItemDamaged

        public boolean isItemDamaged()
      • getItemDamageForDisplay

        public int getItemDamageForDisplay()
      • getItemDamage

        public int getItemDamage()
      • setItemDamage

        public void setItemDamage​(int var1)
      • getMaxDamage

        public int getMaxDamage()
      • damageItem

        public void damageItem​(int var1,
                               LivingEntity var2)
      • onDestroyBlock

        public void onDestroyBlock​(int var1,
                                   int var2,
                                   int var3,
                                   int var4,
                                   Player var5)
      • getDamageVsEntity

        public int getDamageVsEntity​(Entity var1)
      • canHarvestBlock

        public boolean canHarvestBlock​(Block var1)
      • onItemDestroyedByUse

        public void onItemDestroyedByUse​(Player entityplayer)
      • useItemOnEntity

        public void useItemOnEntity​(LivingEntity var1)
      • areItemStacksEqual

        public static boolean areItemStacksEqual​(ItemStack var0,
                                                 ItemStack var1)
      • isItemEqual

        public boolean isItemEqual​(ItemStack var1)
      • getItemName

        public java.lang.String getItemName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • updateAnimation

        public void updateAnimation​(World var1,
                                    Entity var2,
                                    int var3,
                                    boolean var4)
      • onCrafting

        public void onCrafting​(World var1,
                               Player var2,
                               int var3)
      • isStackEqual

        public boolean isStackEqual​(ItemStack var1)
      • getMaxItemUseDuration

        public int getMaxItemUseDuration()
      • getItemUseAction

        public EnumAction getItemUseAction()
      • onPlayerStoppedUsing

        public void onPlayerStoppedUsing​(World var1,
                                         Player var2,
                                         int var3)
      • hasTagCompound

        public boolean hasTagCompound()
      • getEnchantmentTagList

        public NBTTagList getEnchantmentTagList()
      • setTagCompound

        public void setTagCompound​(NBTTagCompound var1)
      • getItemNameandInformation

        @Client
        public @Client java.util.List<java.lang.String> getItemNameandInformation()
      • hasEffect

        @Client
        public @net.minecraft.modding.api.Side.Client boolean hasEffect()
      • isItemEnchantable

        public boolean isItemEnchantable()
      • addEnchantment

        public void addEnchantment​(Enchantment var1,
                                   int var2)
      • isItemEnchanted

        public boolean isItemEnchanted()