Package net.minecraft.src
Class ItemStack
- java.lang.Object
-
- net.minecraft.src.ItemStack
-
public final class ItemStack extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
animationsToGo
int
itemID
int
stackSize
NBTTagCompound
stackTagCompound
-
Method Summary
-
-
-
Field Detail
-
stackSize
public int stackSize
-
animationsToGo
public int animationsToGo
-
itemID
public int itemID
-
stackTagCompound
public NBTTagCompound stackTagCompound
-
-
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()
-
loadItemStackFromNBT
public static ItemStack loadItemStackFromNBT(NBTTagCompound var0)
-
splitStack
public ItemStack splitStack(int var1)
-
getItem
public Item getItem()
-
getIconIndex
@Client public @net.minecraft.modding.api.Side.Client int getIconIndex()
-
getStrVsBlock
public float getStrVsBlock(Block var1)
-
writeToNBT
public NBTTagCompound writeToNBT(NBTTagCompound var1)
-
readFromNBT
public void readFromNBT(NBTTagCompound 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)
-
hitEntity
public void hitEntity(LivingEntity var1, Player 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)
-
copy
public ItemStack copy()
-
isItemEqual
public boolean isItemEqual(ItemStack var1)
-
getItemName
public java.lang.String getItemName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isStackEqual
public boolean isStackEqual(ItemStack var1)
-
getMaxItemUseDuration
public int getMaxItemUseDuration()
-
getItemUseAction
public EnumAction getItemUseAction()
-
hasTagCompound
public boolean hasTagCompound()
-
getTagCompound
public NBTTagCompound getTagCompound()
-
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()
-
getRarity
@Client public @Client EnumRarity getRarity()
-
isItemEnchantable
public boolean isItemEnchantable()
-
addEnchantment
public void addEnchantment(Enchantment var1, int var2)
-
isItemEnchanted
public boolean isItemEnchanted()
-
-