code: public static ResourceLocation getResourceLocation(String name)
  	{
  		int index = name.lastIndexOf(':');
  		String res = null;
  		String modid = null;
  		if (index == -1)
  		{
  			ModContainer container = Loader.instance().activeModContainer();
  			modid = container != null ? container.getModId() : "minecraft";
  			res = name;
  		}
  		else
  		{
  			modid = name.substring(0, index);
  			res = name.substring(index + 1);
  		}
  
  		return new ResourceLocation(modid, res);
  	}
docs: Creates a {@link ResourceLocation} from the specified name.<br>
  The name is split on ':' to find the modid.<br>
  If the modid is not specified, the current active mod container is used, or "minecraft" if none is found.
  
  @param name the name
  @return the resource location