diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
| commit | 20bef6e26d948698398bd16aeab8c9e6b89110e4 (patch) | |
| tree | 8a21e17f78b330435f4ce2d4355d72b773230aa7 /src/main/java/darkknight/jewelrycraft/item/ItemMolds.java | |
| parent | 26fb28edd1ebb6390f8803fed3876d222cb8fdba (diff) | |
Format/import cleanup
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/item/ItemMolds.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/item/ItemMolds.java | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java b/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java index b2acd18..41b5b5a 100755 --- a/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java +++ b/src/main/java/darkknight/jewelrycraft/item/ItemMolds.java @@ -14,11 +14,9 @@ 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"
- };
+ public static final String[] moldsItemNames = new String[] { "ingot", "ring", "necklace", "bracelet", "earrings" };
@SideOnly(Side.CLIENT)
- private IIcon[] moldsIcons;
+ private IIcon[] moldsIcons;
/**
*
@@ -40,25 +38,21 @@ 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];
}
/**
@@ -69,11 +63,10 @@ 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) {
+ public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
for (int j = 0; j < moldsItemNames.length; ++j)
par3List.add(new ItemStack(par1, 1, j));
}
@@ -86,9 +79,6 @@ 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());
}
}
|
