Class ItemDye

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

public class ItemDye extends Item
  • Field Details

    • dyeColorNames

      public static final String[] dyeColorNames
      List of dye color names
    • dyeItemNames

      public static final String[] dyeItemNames
    • dyeColors

      public static final int[] dyeColors
  • Constructor Details

    • ItemDye

      public ItemDye(int par1)
  • Method Details

    • getUnlocalizedName

      public String getUnlocalizedName(ItemStack par1ItemStack)
      Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have different names based on their damage or NBT.
      Overrides:
      getUnlocalizedName in class Item
    • func_96603_a

      public static void func_96603_a(World par0World, int par1, int par2, int par3, int par4)
    • onItemUse

      public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ)
      Description copied from class: Item
      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
    • itemInteractionForEntity

      public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer par2EntityPlayer, EntityLivingBase entity)
      Description copied from class: Item
      Returns true if the item can be used on the given entity, e.g. shears on sheep.
      Overrides:
      itemInteractionForEntity in class Item
    • getIconFromDamage

      @Environment(CLIENT) public Icon getIconFromDamage(int damage)
      Description copied from class: Item
      Gets an icon index based on an item's damage value
      Overrides:
      getIconFromDamage in class Item
    • getSubItems

      public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
      returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
      Overrides:
      getSubItems in class Item
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      Overrides:
      registerIcons in class Item