mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 19:59:56 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
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