mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
83698cb73c
commit
84c2239244
561 files changed
+8872
-9300
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package tconstruct.armor.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.*;
|
||||
@@ -8,10 +7,13 @@ import net.minecraft.potion.*;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
|
||||
public class DiamondApple extends ItemFood {
|
||||
|
||||
public IIcon[] icons;
|
||||
public String[] textureNames = new String[] {"food/apple_diamond"};
|
||||
public String[] itemNames = new String[] {"apple.diamond"};
|
||||
public String[] textureNames = new String[] { "food/apple_diamond" };
|
||||
public String[] itemNames = new String[] { "apple.diamond" };
|
||||
|
||||
public DiamondApple() {
|
||||
super(4, 2.0F, false);
|
||||
@@ -64,9 +66,7 @@ public class DiamondApple extends ItemFood {
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemstack) {
|
||||
return "item.food."
|
||||
+ itemNames[
|
||||
(itemstack.getItemDamage() >= itemNames.length || itemstack.getItemDamage() < 0)
|
||||
? (0)
|
||||
: (itemstack.getItemDamage())];
|
||||
+ itemNames[(itemstack.getItemDamage() >= itemNames.length || itemstack.getItemDamage() < 0) ? (0)
|
||||
: (itemstack.getItemDamage())];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user