mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 21:59:05 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -4,15 +4,16 @@ 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()];
|
||||
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