mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Remove trivial IIcon refs in Item to get a better sense of my progress there
This commit is contained in:
1 parent
921370b546
commit
3fe15e6b7d
31 files changed
+1
-439
No files matched your search
@@ -46,8 +46,6 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
|
||||
int drinkSpeed;
|
||||
ItemStack baseItem;
|
||||
|
||||
IIcon[] icons;
|
||||
|
||||
public ItemBrewBase(String name, String texName, int swigs, int drinkSpeed, ItemStack baseItem) {
|
||||
this.name = name;
|
||||
this.texName = texName;
|
||||
@@ -116,20 +114,6 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister par1IconRegister) {
|
||||
itemIcon = IconHelper.forName(par1IconRegister, texName + "0");
|
||||
|
||||
icons = new IIcon[swigs];
|
||||
for(int i = 0; i < swigs; i++)
|
||||
icons[i] = IconHelper.forName(par1IconRegister, texName + "1_" + i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
return pass == 0 ? itemIcon : icons[Math.max(0, Math.min(icons.length - 1, swigs - getSwigsLeft(stack)))];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
if(pass == 0)
|
||||
|
||||
Reference in new issue
Block a user