mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 00:37:57 +00:00
Good thing they got banned.
This commit is contained in:
1 parent
2f151d3fd2
commit
294cca54f2
2 files changed
+18
-1
No files matched your search
@@ -39,7 +39,8 @@ public class ItemGrassHorn extends ItemMod {
|
||||
|
||||
private static final int SUBTYPES = 3;
|
||||
IIcon[] icons;
|
||||
|
||||
IIcon vuvuzelaIcon;
|
||||
|
||||
public ItemGrassHorn() {
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
@@ -58,6 +59,17 @@ public class ItemGrassHorn extends ItemMod {
|
||||
icons = new IIcon[SUBTYPES];
|
||||
for(int i = 0; i < icons.length; i++)
|
||||
icons[i] = IconHelper.forItem(par1IconRegister, this, i);
|
||||
vuvuzelaIcon = IconHelper.forName(par1IconRegister, "vuvuzela");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIconIndex(ItemStack par1ItemStack) {
|
||||
return par1ItemStack.getDisplayName().toLowerCase().contains("vuvuzela") ? vuvuzelaIcon : super.getIconIndex(par1ItemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
return getIconIndex(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -137,4 +149,9 @@ public class ItemGrassHorn extends ItemMod {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFull3D() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Reference in new issue
Block a user