コード例 #1
0
 public DummyContainerGasesFramework() {
   super(new ModMetadata());
   ModMetadata meta = getMetadata();
   meta.modId = "gasesFrameworkCore";
   meta.name = "Gases Framework Core";
   meta.version = GasesFramework.version;
   meta.description = "Adds core functionality for mods based on the Gases Framework.";
   meta.authorList = Arrays.asList("Glenn");
   meta.url = "http://www.minecraftforum.net/topic/1890587-/";
   meta.screenshots = new String[0];
   meta.parent = "gasesFramework";
 }
コード例 #2
0
ファイル: Settings.java プロジェクト: nanakisan/ICBM
 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;
 }
コード例 #3
0
 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;
 }