mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 17:39:39 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package noppes.npcs.items;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemNpcBlock extends ItemBlock{
|
||||
public String[] names;
|
||||
public ItemNpcBlock(Block block) {
|
||||
super(block);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack par1ItemStack){
|
||||
if(names != null && par1ItemStack.getItemDamage() < names.length)
|
||||
return names[par1ItemStack.getItemDamage()];
|
||||
return this.field_150939_a.getUnlocalizedName();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user