summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2018-05-24 16:03:42 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2018-05-24 16:03:42 -0400
commit9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa (patch)
treeb4307f58fe2197d2215707bb3f44cf8952229c6d /src/main/java/darkknight/jewelrycraft/item/ItemMolds.java
parent4f7ad220df0438b6f3382110577b53f29da46453 (diff)
Formatting pass
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/item/ItemMolds.java')
-rwxr-xr-xsrc/main/java/darkknight/jewelrycraft/item/ItemMolds.java31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java b/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java
index cc817de..b2acd18 100755
--- a/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java
+++ b/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java
@@ -15,9 +15,10 @@ import net.minecraft.util.MathHelper;
public class ItemMolds extends Item {
/** List of molds color names */
public static final String[] moldsItemNames = new String[] {
- "ingot", "ring", "necklace", "bracelet", "earrings" };
+ "ingot", "ring", "necklace", "bracelet", "earrings"
+ };
@SideOnly(Side.CLIENT)
- private IIcon[] moldsIcons;
+ private IIcon[] moldsIcons;
/**
*
@@ -39,23 +40,25 @@ public class ItemMolds 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];
}
/**
@@ -66,8 +69,8 @@ public class ItemMolds 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) {
@@ -83,7 +86,9 @@ public class ItemMolds 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());
}
}