コード例 #1
0
 /**
  * Retrieves an item's icon, with meta support.
  *
  * @param item the item to get the icon for.
  * @param meta the meta value (damage) of the item.
  * @return the icon representing the item.
  */
 public static IIcon getIcon(Item item, int meta) {
   if (item instanceof ItemBlock) {
     return ((ItemBlock) item).field_150939_a.getIcon(3, meta);
   }
   return item.getIconFromDamage(meta);
 }
コード例 #2
0
 public int getItemIcon(Item var1, int var2) {
   return var1.getIconFromDamage(var2);
 }