mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
28 lines
739 B
Java
28 lines
739 B
Java
package noppes.npcs.items;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.ItemBlock;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.IIcon;
|
|
|
|
public class ItemPlaceholder extends ItemBlock {
|
|
|
|
public ItemPlaceholder(Block p_i45328_1_) {
|
|
super(p_i45328_1_);
|
|
setHasSubtypes(true);
|
|
}
|
|
|
|
@Override
|
|
public String getUnlocalizedName(ItemStack par1ItemStack) {
|
|
return super.getUnlocalizedName(par1ItemStack) + "_" + par1ItemStack.getItemDamage();
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public IIcon getIconFromDamage(int par1) {
|
|
return this.field_150939_a.getIcon(0, par1);
|
|
}
|
|
}
|