summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java')
-rwxr-xr-xsrc/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java35
1 files changed, 20 insertions, 15 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java b/src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java
index 9bc630a..10929bd 100755
--- a/src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java
+++ b/src/main/java/darkknight/jewelrycraft/item/ItemClayMolds.java
@@ -14,11 +14,12 @@ import net.minecraft.util.MathHelper;
public class ItemClayMolds extends Item {
/** List of molds color names */
- public static final String[] moldsItemNames =
- new String[] { "clayIngot", "clayRing", "clayNecklace",
- "clayBracelet", "clayEarrings" };
+ public static final String[] moldsItemNames = new String[] {
+ "clayIngot", "clayRing", "clayNecklace",
+ "clayBracelet", "clayEarrings"
+ };
@SideOnly(Side.CLIENT)
- private IIcon[] moldsIcons;
+ private IIcon[] moldsIcons;
/**
*
@@ -40,23 +41,25 @@ public class ItemClayMolds extends Item {
* Gets an icon index based on an item's damage value
*/
public IIcon getIconFromDamage(int par1) {
- int j = MathHelper.clamp_int(par1, 0, moldsItemNames.length - 1);
+ int j = MathHelper.clamp_int(par1, 0,
+ moldsItemNames.length - 1);
return moldsIcons[j];
}
/**
- * Returns the unlocalized name of this item. This version accepts an
- * ItemStack so different stacks can have different names based on
- * their damage or NBT.
+ * Returns the unlocalized name of this item. This version accepts
+ * an ItemStack so different stacks can have different names based
+ * on their damage or NBT.
*
* @param par1ItemStack
* @return
*/
@Override
public String getUnlocalizedName(ItemStack par1ItemStack) {
- int i = MathHelper.clamp_int(par1ItemStack.getItemDamage(), 0,
- moldsItemNames.length - 1);
- return super.getUnlocalizedName() + "." + moldsItemNames[i];
+ int i = MathHelper.clamp_int(par1ItemStack.getItemDamage(),
+ 0, moldsItemNames.length - 1);
+ return super.getUnlocalizedName() + "."
+ + moldsItemNames[i];
}
/**
@@ -67,8 +70,8 @@ public class ItemClayMolds extends Item {
@Override
@SideOnly(Side.CLIENT)
/**
- * returns a list of items with the same ID, but different meta (eg:
- * molds returns 16 items)
+ * returns a list of items with the same ID, but different meta
+ * (eg: molds returns 16 items)
*/
public void getSubItems(Item par1, CreativeTabs par2CreativeTabs,
List par3List) {
@@ -84,7 +87,9 @@ public class ItemClayMolds extends Item {
public void registerIcons(IIconRegister par1IconRegister) {
moldsIcons = new IIcon[moldsItemNames.length];
for (int i = 0; i < moldsItemNames.length; ++i)
- moldsIcons[i] = par1IconRegister.registerIcon(Variables.MODID
- + ":" + moldsItemNames[i] + getIconString());
+ moldsIcons[i] = par1IconRegister
+ .registerIcon(Variables.MODID + ":"
+ + moldsItemNames[i]
+ + getIconString());
}
}