Class ItemRecord

java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemRecord

public class ItemRecord extends Item
  • Field Details

    • recordName

      public final String recordName
      The name of the record.
  • Constructor Details

    • ItemRecord

      protected ItemRecord(int par1, String par2Str)
  • Method Details

    • getIconFromDamage

      public Icon getIconFromDamage(int par1)
      Gets an icon index based on an item's damage value
      Overrides:
      getIconFromDamage in class Item
    • onItemUse

      public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
      Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
      Overrides:
      onItemUse in class Item
    • addInformation

      public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
      allows items to add custom lines of information to the mouseover description
      Overrides:
      addInformation in class Item
    • getRecordTitle

      public String getRecordTitle()
      Return the title for this record.
    • getRarity

      public EnumRarity getRarity(ItemStack par1ItemStack)
      Return an item rarity from EnumRarity
      Overrides:
      getRarity in class Item
    • getRecord

      public static ItemRecord getRecord(String par0Str)
      Return the record item corresponding to the given name.