// Path: src/main/java/com/corwinjv/mobtotems/Reference.java
// public class Reference {
//     public static final String MOD_ID = "mobtotems";
//     public static final String MOD_NAME = "Mob Totems";
//     public static final String MOD_VERSION = "1.12.1-0.3.0";
//     public static final String RESOURCE_PREFIX = MOD_ID + ":";
// 
//     public static final String GUI_FACTORY_CLASS = "com.corwinjv.mobtotems.gui.GuiFactoryMT";
//     public static final String CLIENT_SIDE_PROXY_CLASS = "com.corwinjv.mobtotems.proxy.ClientProxy";
//     public static final String SERVER_SIDE_PROXY_CLASS = "com.corwinjv.mobtotems.proxy.CommonProxy";
// 
//     public static final int CHARGE_COLOR = 0xFF00FF00;
// 
//     public enum GUI_ID {
//         OFFERING_BOX
//     }
// 
//     ;
// 
//     public static void PrintEntityList() {
//         Iterator entityNameItr = EntityList.getEntityNameList().iterator();
//         FMLLog.log(Reference.MOD_NAME, Level.INFO, "-Printing Registered Entity Classes-");
//         while (entityNameItr.hasNext()) {
//             String key = (String) entityNameItr.next();
//             FMLLog.log(Reference.MOD_NAME, Level.INFO, String.format("     %s", key));
//         }
//     }
// }
// 
// Path: src/main/java/com/corwinjv/mobtotems/items/baubles/BaubleItem.java
// @Optional.Interface(modid = "baubles", iface = "baubles.api.IBauble")
// public class BaubleItem extends ModItem implements IBauble, IChargeable {
//     protected static final String CHARGE_LEVEL = "CHARGE_LEVEL";
// 
//     public BaubleItem() {
//         super();
//     }
// 
//     @Override
//     public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {
//         initNbtData(stack);
//     }
// 
//     protected NBTTagCompound initNbtData(ItemStack stack) {
//         NBTTagCompound nbtTagCompound = stack.getTagCompound();
//         if (nbtTagCompound == null) {
//             nbtTagCompound = new NBTTagCompound();
//         }
//         nbtTagCompound.setInteger(CHARGE_LEVEL, 0);
// 
//         stack.setTagCompound(nbtTagCompound);
//         return nbtTagCompound;
//     }
// 
//     @SuppressWarnings("all")
//     @Override
//     public int getChargeLevel(ItemStack stack) {
//         NBTTagCompound tagCompound = stack.getTagCompound();
//         if (tagCompound == null) {
//             tagCompound = initNbtData(stack);
//         }
//         return tagCompound.getInteger(CHARGE_LEVEL);
//     }
// 
//     @Override
//     public void setChargeLevel(ItemStack stack, int chargeLevel) {
//         NBTTagCompound tagCompound = stack.getTagCompound();
//         if (tagCompound == null) {
//             tagCompound = initNbtData(stack);
//         }
//         tagCompound.setInteger(CHARGE_LEVEL, chargeLevel);
//     }
// 
//     @Override
//     public void decrementChargeLevel(ItemStack stack, int amount) {
//         int chargeLevel = getChargeLevel(stack);
//         chargeLevel -= amount;
//         if (chargeLevel < 0) {
//             chargeLevel = 0;
//         }
// 
//         setChargeLevel(stack, chargeLevel);
//     }
// 
//     @Override
//     public void incrementChargeLevel(ItemStack stack, int amount) {
//         int chargeLevel = getChargeLevel(stack);
//         chargeLevel += amount;
//         if (chargeLevel > getMaxChargeLevel()) {
//             chargeLevel = getMaxChargeLevel();
//         }
//         setChargeLevel(stack, chargeLevel);
//     }
// 
//     @Override
//     public int getMaxChargeLevel() {
//         return 16;
//     }
// 
//     public void onBaubleActivated(ItemStack stack, EntityPlayer player) {
//     }
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
//         super.addInformation(stack, worldIn, tooltip, flagIn);
//     }
// 
//     @Override
//     public BaubleType getBaubleType(ItemStack itemstack) {
//         return BaubleType.TRINKET;
//     }
// 
//     @Override
//     public boolean canEquip(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// 
//     @Override
//     public boolean canUnequip(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// 
//     @Override
//     public boolean willAutoSync(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// }


import com.corwinjv.mobtotems.Reference;
import com.corwinjv.mobtotems.items.baubles.BaubleItem;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.translation.I18n;
import javax.annotation.Nonnull;
package com.corwinjv.mobtotems.gui;



/**
 * Created by CorwinJV on 1/19/2017.
 */
public class util {
    public static ResourceLocation getGuiResourceLocation(@Nonnull BaubleItem baubleItem) {
// Path: src/main/java/com/corwinjv/mobtotems/Reference.java
// public class Reference {
//     public static final String MOD_ID = "mobtotems";
//     public static final String MOD_NAME = "Mob Totems";
//     public static final String MOD_VERSION = "1.12.1-0.3.0";
//     public static final String RESOURCE_PREFIX = MOD_ID + ":";
// 
//     public static final String GUI_FACTORY_CLASS = "com.corwinjv.mobtotems.gui.GuiFactoryMT";
//     public static final String CLIENT_SIDE_PROXY_CLASS = "com.corwinjv.mobtotems.proxy.ClientProxy";
//     public static final String SERVER_SIDE_PROXY_CLASS = "com.corwinjv.mobtotems.proxy.CommonProxy";
// 
//     public static final int CHARGE_COLOR = 0xFF00FF00;
// 
//     public enum GUI_ID {
//         OFFERING_BOX
//     }
// 
//     ;
// 
//     public static void PrintEntityList() {
//         Iterator entityNameItr = EntityList.getEntityNameList().iterator();
//         FMLLog.log(Reference.MOD_NAME, Level.INFO, "-Printing Registered Entity Classes-");
//         while (entityNameItr.hasNext()) {
//             String key = (String) entityNameItr.next();
//             FMLLog.log(Reference.MOD_NAME, Level.INFO, String.format("     %s", key));
//         }
//     }
// }
// 
// Path: src/main/java/com/corwinjv/mobtotems/items/baubles/BaubleItem.java
// @Optional.Interface(modid = "baubles", iface = "baubles.api.IBauble")
// public class BaubleItem extends ModItem implements IBauble, IChargeable {
//     protected static final String CHARGE_LEVEL = "CHARGE_LEVEL";
// 
//     public BaubleItem() {
//         super();
//     }
// 
//     @Override
//     public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {
//         initNbtData(stack);
//     }
// 
//     protected NBTTagCompound initNbtData(ItemStack stack) {
//         NBTTagCompound nbtTagCompound = stack.getTagCompound();
//         if (nbtTagCompound == null) {
//             nbtTagCompound = new NBTTagCompound();
//         }
//         nbtTagCompound.setInteger(CHARGE_LEVEL, 0);
// 
//         stack.setTagCompound(nbtTagCompound);
//         return nbtTagCompound;
//     }
// 
//     @SuppressWarnings("all")
//     @Override
//     public int getChargeLevel(ItemStack stack) {
//         NBTTagCompound tagCompound = stack.getTagCompound();
//         if (tagCompound == null) {
//             tagCompound = initNbtData(stack);
//         }
//         return tagCompound.getInteger(CHARGE_LEVEL);
//     }
// 
//     @Override
//     public void setChargeLevel(ItemStack stack, int chargeLevel) {
//         NBTTagCompound tagCompound = stack.getTagCompound();
//         if (tagCompound == null) {
//             tagCompound = initNbtData(stack);
//         }
//         tagCompound.setInteger(CHARGE_LEVEL, chargeLevel);
//     }
// 
//     @Override
//     public void decrementChargeLevel(ItemStack stack, int amount) {
//         int chargeLevel = getChargeLevel(stack);
//         chargeLevel -= amount;
//         if (chargeLevel < 0) {
//             chargeLevel = 0;
//         }
// 
//         setChargeLevel(stack, chargeLevel);
//     }
// 
//     @Override
//     public void incrementChargeLevel(ItemStack stack, int amount) {
//         int chargeLevel = getChargeLevel(stack);
//         chargeLevel += amount;
//         if (chargeLevel > getMaxChargeLevel()) {
//             chargeLevel = getMaxChargeLevel();
//         }
//         setChargeLevel(stack, chargeLevel);
//     }
// 
//     @Override
//     public int getMaxChargeLevel() {
//         return 16;
//     }
// 
//     public void onBaubleActivated(ItemStack stack, EntityPlayer player) {
//     }
// 
//     @Override
//     @SideOnly(Side.CLIENT)
//     public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
//         super.addInformation(stack, worldIn, tooltip, flagIn);
//     }
// 
//     @Override
//     public BaubleType getBaubleType(ItemStack itemstack) {
//         return BaubleType.TRINKET;
//     }
// 
//     @Override
//     public boolean canEquip(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// 
//     @Override
//     public boolean canUnequip(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// 
//     @Override
//     public boolean willAutoSync(ItemStack itemstack, EntityLivingBase player) {
//         return true;
//     }
// }


// Path: src/main/java/com/corwinjv/mobtotems/gui/util.java
import com.corwinjv.mobtotems.Reference;
import com.corwinjv.mobtotems.items.baubles.BaubleItem;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.translation.I18n;
import javax.annotation.Nonnull;

package com.corwinjv.mobtotems.gui;



/**
 * Created by CorwinJV on 1/19/2017.
 */
public class util {
    public static ResourceLocation getGuiResourceLocation(@Nonnull BaubleItem baubleItem) {
        String resourceName = baubleItem.getRegistryName().toString().substring(Reference.RESOURCE_PREFIX.length());