mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
start 1.10.2
This commit is contained in:
1 parent
f969f63b66
commit
6a7c4bf67d
826 files changed
+60550
-63758
No files matched your search
@@ -1,45 +1,36 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.botany.genetics;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import binnie.botany.CreativeTabBotany;
|
||||
import net.minecraft.util.IIcon;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import binnie.botany.Botany;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemEncyclopedia extends Item
|
||||
{
|
||||
boolean reinforced;
|
||||
public class ItemEncyclopedia extends Item {
|
||||
boolean reinforced;
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(final IIconRegister register) {
|
||||
this.itemIcon = Botany.proxy.getIcon(register, "encylopedia" + (this.reinforced ? "Iron" : ""));
|
||||
}
|
||||
// @Override
|
||||
// @SideOnly(Side.CLIENT)
|
||||
// public void registerIcons(final IIconRegister register) {
|
||||
// this.itemIcon = Botany.proxy.getIcon(register, "encylopedia" + (this.reinforced ? "Iron" : ""));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// @SideOnly(Side.CLIENT)
|
||||
// public IIcon getIconFromDamage(final int par1) {
|
||||
// return this.itemIcon;
|
||||
// }
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(final int par1) {
|
||||
return this.itemIcon;
|
||||
}
|
||||
public ItemEncyclopedia(final boolean reinforced) {
|
||||
this.reinforced = false;
|
||||
this.reinforced = reinforced;
|
||||
this.setCreativeTab(CreativeTabBotany.instance);
|
||||
this.setUnlocalizedName("encylopedia" + (reinforced ? "Iron" : ""));
|
||||
this.setMaxStackSize(1);
|
||||
this.setMaxDamage(reinforced ? 480 : 120);
|
||||
setRegistryName("encylopedia" + (reinforced ? "Iron" : ""));
|
||||
}
|
||||
|
||||
public ItemEncyclopedia(final boolean reinforced) {
|
||||
this.reinforced = false;
|
||||
this.reinforced = reinforced;
|
||||
this.setCreativeTab(CreativeTabBotany.instance);
|
||||
this.setUnlocalizedName("encylopedia" + (reinforced ? "Iron" : ""));
|
||||
this.setMaxStackSize(1);
|
||||
this.setMaxDamage(reinforced ? 480 : 120);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(final ItemStack i) {
|
||||
return (this.reinforced ? "Reinforced " : "") + "Florist's Encyclopaedia";
|
||||
}
|
||||
@Override
|
||||
public String getItemStackDisplayName(final ItemStack i) {
|
||||
return (this.reinforced ? "Reinforced " : "") + "Florist's Encyclopaedia";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user