package xyz.brassgoggledcoders.steamagerevolution.item;

import java.security.InvalidParameterException;
import java.util.List;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import xyz.brassgoggledcoders.boilerplate.lib.common.items.BaseItem;
import xyz.brassgoggledcoders.steamagerevolution.init.InitItems;
import xyz.brassgoggledcoders.steamagerevolution.lib.MetalTypes;

public class ItemMaterial extends BaseItem
{

	public String[] types = MetalTypes.metalsAll;

	public ItemStack getStackByName(String name, int count)
	{
		for(int i = 0; i < types.length; i++)
		{
			if(types[i].equalsIgnoreCase(name))
			{
				return new ItemStack(InitItems.ITEM_INGOTS, i);
			}
		}
		throw new InvalidParameterException(name + " could not be found.");
	}

	public ItemStack getStackByName(String name)
	{
		return getStackByName(name, 1);
	}

	public ItemMaterial(String[] typesList, String name)
	{
		super(name);
		this.types = typesList;
		setHasSubtypes(true);
	}

	@Override
	public String getUnlocalizedName(ItemStack itemStack)
	{
		int meta = itemStack.getItemDamage();
		if(meta < 0 || meta >= types.length)
		{
			meta = 0;
		}

		return super.getUnlocalizedName() + "." + types[meta];
	}

	public void getSubItems(Item item, CreativeTabs creativeTabs, List<ItemStack> list)
	{
		for(int meta = 0; meta < types.length; ++meta)
		{
			list.add(new ItemStack(item, 1, meta));
		}
	}
}

@@ -303,24 +303,102 @@
 s.BaseItem;%0A
+import xyz.brassgoggledcoders.boilerplate.lib.common.registries.ItemRegistry;%0A
 import xyz.b
@@ -788,28 +788,54 @@
 ck(I
-nitItems.ITEM_INGOTS
+temRegistry.getItem(this.getUnlocalizedName())
 , i)

Fix more thing