whoops
parent
3b8b08b308
commit
1ae12f6577
|
@ -24,11 +24,9 @@ import steamcraft.common.lib.ModInfo;
|
|||
|
||||
public class ItemTeacup extends BaseMetadataItem
|
||||
{
|
||||
IIcon[] itemIcon = new IIcon[2];
|
||||
|
||||
public ItemTeacup()
|
||||
{
|
||||
super(Steamcraft.instance, null);
|
||||
super(Steamcraft.instance, new String[] { "", "" });
|
||||
this.setMaxStackSize(1);
|
||||
this.setNoRepair();
|
||||
this.setFull3D();
|
||||
|
|
|
@ -8,6 +8,7 @@ import net.minecraft.creativetab.CreativeTabs;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
@ -21,10 +22,9 @@ import steamcraft.common.lib.ModInfo;
|
|||
|
||||
public class ItemTeapot extends BaseMetadataItem
|
||||
{
|
||||
|
||||
public ItemTeapot()
|
||||
{
|
||||
super(Steamcraft.instance, null);
|
||||
super(Steamcraft.instance, new String[] { "" });
|
||||
this.setMaxStackSize(1);
|
||||
this.setNoRepair();
|
||||
this.setFull3D();
|
||||
|
@ -37,6 +37,13 @@ public class ItemTeapot extends BaseMetadataItem
|
|||
this.itemIcon[0] = icon.registerIcon(ModInfo.PREFIX + this.getUnlocalizedName().substring(5));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int itemDamage)
|
||||
{
|
||||
return this.itemIcon[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue