Beispiel #1
0
 public static void setModMetadata(String id, String name, ModMetadata metadata, String parent) {
   metadata.modId = id;
   metadata.name = name;
   metadata.description =
       "ICBM is a Minecraft Mod that introduces intercontinental ballistic missiles to Minecraft. But the fun doesn't end there! This mod also features many different explosives, missiles and machines classified in three different tiers. If strategic warfare, carefully coordinated airstrikes, messing with matter and general destruction are up your alley, then this mod is for you!";
   metadata.url = "http://www.calclavia.com/icbm/";
   metadata.logoFile = "/icbm_logo.png";
   metadata.version = Reference.VERSION;
   metadata.authorList = Arrays.asList(new String[] {"Calclavia"});
   metadata.parent = parent;
   metadata.credits = "Please visit the website.";
   metadata.autogenerated = false;
 }
 public FMLDummyContainer() {
   super(new ModMetadata());
   ModMetadata meta = getMetadata();
   meta.modId = "FML";
   meta.name = "Forge Mod Loader";
   meta.version = Loader.instance().getFMLVersionString();
   meta.credits = "Made possible with help from many people";
   meta.authorList = Arrays.asList("cpw, LexManos");
   meta.description =
       "The Forge Mod Loader provides the ability for systems to load mods "
           + "from the file system. It also provides key capabilities for mods to be able "
           + "to cooperate and provide a good modding environment. "
           + "The mod loading system is compatible with ModLoader, all your ModLoader "
           + "mods should work.";
   meta.url = "https://github.com/MinecraftForge/FML/wiki";
   meta.updateUrl = "https://github.com/MinecraftForge/FML/wiki";
   meta.screenshots = new String[0];
   meta.logoFile = "";
 }
 public ScriptModContainer(TocManager.TableofContents toc, File source, IScriptingCore core) {
   ModMetadata META = new ModMetadata();
   META.authorList.add(toc.getAuthor());
   META.autogenerated = true;
   META.credits = "";
   META.description = "Fake mod container generated by the INpureCore script engine.";
   META.modId = toc.getTitle();
   META.name = toc.getTitle();
   META.parent = modInfo.modid;
   META.parentMod = FMLCommonHandler.instance().findContainerFor(INpureCore.instance);
   META.version = toc.getVersion();
   try {
     // Stupid private fields.
     Field f = this.getClass().getSuperclass().getDeclaredField("md");
     f.setAccessible(true);
     f.set(this, META);
   } catch (Throwable t) {
     t.printStackTrace();
   }
   this.source = source;
   this.core = core;
 }