Java 类cpw.mods.fml.common.ModMetadata 实例源码

项目:4Space-5    文件:NEIModContainer.java   
@Override
public ModMetadata getMetadata() {
    ModMetadata meta = super.getMetadata();
    meta.description = "Recipe Viewer, Inventory Manager, Item Spawner, Cheats and more.\n"+ EnumChatFormatting.WHITE+"\n";

    if (plugins.size() == 0) {
        meta.description += EnumChatFormatting.RED+"No installed plugins.";
    } else {
        meta.description += EnumChatFormatting.GREEN+"Installed plugins: ";
        for (int i = 0; i < plugins.size(); i++) {
            if (i > 0)
                meta.description += ", ";
            IConfigureNEI plugin = plugins.get(i);
            meta.description += plugin.getName() + " " + plugin.getVersion();
        }
        meta.description += ".";
    }

    return meta;
}
项目:TRHS_Club_Mod_2016    文件:FMLClientHandler.java   
private void detectOptifine()
{
    try
    {
        Class<?> optifineConfig = Class.forName("Config", false, Loader.instance().getModClassLoader());
        String optifineVersion = (String) optifineConfig.getField("VERSION").get(null);
        Map<String,Object> dummyOptifineMeta = ImmutableMap.<String,Object>builder().put("name", "Optifine").put("version", optifineVersion).build();
        ModMetadata optifineMetadata = MetadataCollection.from(getClass().getResourceAsStream("optifinemod.info"),"optifine").getMetadataForId("optifine", dummyOptifineMeta);
        optifineContainer = new DummyModContainer(optifineMetadata);
        FMLLog.info("Forge Mod Loader has detected optifine %s, enabling compatibility features",optifineContainer.getVersion());
    }
    catch (Exception e)
    {
        optifineContainer = null;
    }
}
项目:TRHS_Club_Mod_2016    文件:ForgeModContainer.java   
public ForgeModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId       = "Forge";
    meta.name        = "Minecraft Forge";
    meta.version     = String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
    meta.credits     = "Made possible with help from many people";
    meta.authorList  = Arrays.asList("LexManos", "Eloraam", "Spacetoad");
    meta.description = "Minecraft Forge is a common open source API allowing a broad range of mods " +
                       "to work cooperatively together. It allows many mods to be created without " +
                       "them editing the main Minecraft code.";
    meta.url         = "http://MinecraftForge.net";
    meta.updateUrl   = "http://MinecraftForge.net/forum/index.php/topic,5.0.html";
    meta.screenshots = new String[0];
    meta.logoFile    = "/forge_logo.png";

    config = null;
    File cfgFile = new File(Loader.instance().getConfigDir(), "forge.cfg");
    config = new Configuration(cfgFile);

    syncConfig(true);
}
项目:RorysMod    文件:RorysModCore.java   
public RorysModCore() {
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.autogenerated = false;
    meta.modId = "rorysmodcore";
    meta.name = "Rory's Mod Core";
    meta.version = "2.0";
    meta.credits = "";
    meta.authorList = Arrays.asList("Rory Claasen");
    meta.description = "The Backbone to Rory's Mod";
    meta.url = "http://rorysmod.rtfd.io";
    meta.updateUrl = "";
    meta.screenshots = new String[0];
    meta.logoFile = "assets/rorysmod/textures/logo.png";
    meta.parent = "rorysmod";
}
项目:CauldronGit    文件:ForgeModContainer.java   
public ForgeModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId       = "Forge";
    meta.name        = "Minecraft Forge";
    meta.version     = String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
    meta.credits     = "Made possible with help from many people";
    meta.authorList  = Arrays.asList("LexManos", "Eloraam", "Spacetoad");
    meta.description = "Minecraft Forge is a common open source API allowing a broad range of mods " +
                       "to work cooperatively together. It allows many mods to be created without " +
                       "them editing the main Minecraft code.";
    meta.url         = "http://MinecraftForge.net";
    meta.updateUrl   = "http://MinecraftForge.net/forum/index.php/topic,5.0.html";
    meta.screenshots = new String[0];
    meta.logoFile    = "/forge_logo.png";

    config = null;
    File cfgFile = new File(Loader.instance().getConfigDir(), "forge.cfg");
    config = new Configuration(cfgFile);

    syncConfig(true);
}
项目:AdvancedRocketry    文件:ModContainer.java   
public ModContainer()
{       
    super(new ModMetadata());

    System.out.println("********* CoreDummyContainer. OK");

    ModMetadata meta = getMetadata();

    meta.modId = "AdvancedRocketryCore";
    meta.name = "Advanced Rocketry";
    meta.version = "1";
    meta.credits = "Created by Zmaster587";
    meta.authorList = Arrays.asList("Zmaster587");
    meta.description = "ASM handler for AR";
    meta.url = "";
    meta.updateUrl = "";
    meta.screenshots = new String[0];
    meta.logoFile = "";
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the vanilla third person camera to an over-the-shoulder camera, as made popular by Capcom's \"Resident Evil 4\". " +
                         "Includes keybindings for adjusting the camera, along with various settings in the config file.  Must be installed as a Forge " +
                         "coremod.  Code injection may fail if using mods that mess with the base files.";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.4.0";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "teamderpy.com";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the vanilla third person camera to an over-the-shoulder camera, as made popular by Capcom's \"Resident Evil 4\". " +
                         "Includes keybindings for adjusting the camera, along with various settings in the config file.  Must be installed as a Forge " +
                         "coremod.  Code injection may fail if using mods that mess with the base files.";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.2.1";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "teamderpy.com";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the vanilla third person camera to an over-the-shoulder camera, as made popular by Capcom's \"Resident Evil 4\". " +
                         "Includes keybindings for adjusting the camera, along with various settings in the config file.  Must be installed as a Forge " +
                         "coremod.  Code injection may fail if using mods that mess with the base files.";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.5.1";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "teamderpy.com";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the vanilla third person camera to an over-the-shoulder camera, as made popular by Capcom's \"Resident Evil 4\". " +
                         "Includes keybindings for adjusting the camera, along with various settings in the config file.  Must be installed as a Forge " +
                         "coremod.  Code injection may fail if using mods that mess with the base files.";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.3.0";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "teamderpy.com";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the vanilla third person camera to an over-the-shoulder camera, as made popular by Capcom's \"Resident Evil 4\". " +
                         "Includes keybindings for adjusting the camera, along with various settings in the config file.  Must be installed as a Forge " +
                         "coremod.  Code injection may fail if using mods that mess with the base files.";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.6.4";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "teamderpy.com";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
public ShoulderSurfing(){
       super(new ModMetadata());
       /* ModMetadata is the same as mcmod.info */
       ModMetadata myMeta = super.getMetadata();
       myMeta.authorList = Arrays.asList(new String[] { "Joshua Powers" });
       myMeta.description = "Changes the third person camera to an over-the-shoulder camera";
       myMeta.modId = "ShoulderSurfing";
       myMeta.version = "1.1.0";
       myMeta.name = "ShoulderSurfing";
       myMeta.url = "";

       if(logger == null){
        logger = Logger.getLogger("ShoulderSurfing");
        logger.setParent(FMLLog.getLogger());
       }
}
项目:Cauldron    文件:ForgeModContainer.java   
public ForgeModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId       = "Forge";
    meta.name        = "Minecraft Forge";
    meta.version     = String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
    meta.credits     = "Made possible with help from many people";
    meta.authorList  = Arrays.asList("LexManos", "Eloraam", "Spacetoad");
    meta.description = "Minecraft Forge is a common open source API allowing a broad range of mods " +
                       "to work cooperatively together. It allows many mods to be created without " +
                       "them editing the main Minecraft code.";
    meta.url         = "http://MinecraftForge.net";
    meta.updateUrl   = "http://MinecraftForge.net/forum/index.php/topic,5.0.html";
    meta.screenshots = new String[0];
    meta.logoFile    = "/forge_logo.png";

    config = null;
    File cfgFile = new File(Loader.instance().getConfigDir(), "forge.cfg");
    config = new Configuration(cfgFile);

    syncConfig(true);
}
项目:Cauldron    文件:ForgeModContainer.java   
public ForgeModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId       = "Forge";
    meta.name        = "Minecraft Forge";
    meta.version     = String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
    meta.credits     = "Made possible with help from many people";
    meta.authorList  = Arrays.asList("LexManos", "Eloraam", "Spacetoad");
    meta.description = "Minecraft Forge is a common open source API allowing a broad range of mods " +
                       "to work cooperatively together. It allows many mods to be created without " +
                       "them editing the main Minecraft code.";
    meta.url         = "http://MinecraftForge.net";
    meta.updateUrl   = "http://MinecraftForge.net/forum/index.php/topic,5.0.html";
    meta.screenshots = new String[0];
    meta.logoFile    = "/forge_logo.png";

    config = null;
    File cfgFile = new File(Loader.instance().getConfigDir(), "forge.cfg");
    config = new Configuration(cfgFile);

    syncConfig(true);
}
项目:Cauldron    文件:ForgeModContainer.java   
public ForgeModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId       = "Forge";
    meta.name        = "Minecraft Forge";
    meta.version     = String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
    meta.credits     = "Made possible with help from many people";
    meta.authorList  = Arrays.asList("LexManos", "Eloraam", "Spacetoad");
    meta.description = "Minecraft Forge is a common open source API allowing a broad range of mods " +
                       "to work cooperatively together. It allows many mods to be created without " +
                       "them editing the main Minecraft code.";
    meta.url         = "http://MinecraftForge.net";
    meta.updateUrl   = "http://MinecraftForge.net/forum/index.php/topic,5.0.html";
    meta.screenshots = new String[0];
    meta.logoFile    = "/forge_logo.png";

    config = null;
    File cfgFile = new File(Loader.instance().getConfigDir(), "forge.cfg");
    config = new Configuration(cfgFile);

    syncConfig(true);
}
项目:minecraft-vr-base    文件:VRModContainer.java   
public VRModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId = "com.minecraft-vr.core";
    meta.name = "VR Core";
    meta.version = "1.0";
    meta.credits = "";
    meta.authorList.add( "mabrowning" );
    meta.authorList.add( "StellaArtois" );
    meta.description = "CoreMod for altering the vanilla render state in support of the VR Base";
    meta.url = "https://minecraft-vr.com/";
    meta.updateUrl = "";
    meta.screenshots = new String[0];
    meta.logoFile = "";
}
项目:N-API    文件:NAPIFMLModContainer.java   
public NAPIFMLModContainer()
{
    super(new ModMetadata());
    ModMetadata metadata = getMetadata();
    metadata.description = "A Forge compatible alternative to Forge, it allows for most of the same stuff as both MinecraftForge and FML both" +
            " by itself and with the two.";
    metadata.credits = "Whatever difference there was between this and my other projects that allowed me to continue with this," +
            " up until this point at the least. Oh, and Gradle, for not downloading all of ForgeGradle's dependencies, prompting me" +
            " to make this.";
    metadata.authorList = Arrays.asList("Niadel");
    metadata.modId = NAPIData.FORGE_MODID;
    metadata.name = NAPIData.NAME;
    metadata.dependants = Collections.emptyList();
    metadata.dependencies = Collections.emptyList();
    metadata.childMods = Collections.emptyList();
    metadata.requiredMods = Collections.emptySet();
    metadata.version = NAPIData.FULL_VERSION;
    metadata.updateUrl = "";
    metadata.url = "https://github.com/Niadel/N-API";
    metadata.parent = "";
    metadata.useDependencyInformation = false;
}
项目:MinecraftScripting    文件:ScriptingMod.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    Config.load(new Configuration(event.getSuggestedConfigurationFile()));

    selector = new SelectorItem();
    GameRegistry.registerItem(selector, selector.getUnlocalizedName());

    ModMetadata modMeta = event.getModMetadata();
    modMeta.authorList = Arrays.asList(new String[] { "Davidee" });
    modMeta.autogenerated = false;
    modMeta.credits = "Thanks to Mojang, Forge, and all your support.";
    modMeta.description = "Adds Javascript support to Minecraft via Mozilla Rhino."
            + " Users can write their own scripts to run in-game on either the client or server"
            + " and also use filters to directly modify their world." 
            + "\nFor more information, visit the URL above.";
    modMeta.url = "http://www.minecraftforum.net/topic/1951378-/";
}
项目:BetterSpawnEggs    文件:SpawnEggsMod.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    spawnEgg = new ItemSpawnEgg();

    GameRegistry.registerItem(spawnEgg, spawnEgg.getUnlocalizedName());
    BlockDispenser.dispenseBehaviorRegistry.putObject(spawnEgg, new DispenserBehaviorSpawnEgg());

    ModMetadata modMeta = event.getModMetadata();
    modMeta.authorList = Arrays.asList(new String[] { "Davidee" });
    modMeta.autogenerated = false;
    modMeta.credits = "Thanks to Mojang, Forge, and all your support.";
    modMeta.description = "Adds advanced spawn eggs into Minecraft.\n"
            + "These spawn eggs can be customized using NBTEdit.\n"
            + "For more information, visit the URL above.";
    modMeta.url = "http://www.minecraftforum.net/topic/1882749-/";
}
项目:4Space-5    文件:MicdoodleModContainer.java   
public MicdoodleModContainer()
{
    super(new ModMetadata());
    ModMetadata meta = this.getMetadata();
    meta.modId = "Micdoodlecore";
    meta.name = "Micdoodle8 Core";
    meta.updateUrl = "http://www.micdoodle8.com/";
    meta.description = "Provides core features of Micdoodle8's mods";
    meta.authorList = Arrays.asList("micdoodle8, radfast");
    meta.url = "http://www.micdoodle8.com/";
}
项目:ThermosRebased    文件:ImagineModContainer.java   
private static ModMetadata createContainerMetadata() {
    final ModMetadata metadata = new ModMetadata();
    metadata.modId = "kimagine";
    metadata.name = "KImagine";
    metadata.version = "0.2";
    return metadata;
}
项目:Regional-Water    文件:RWModContainer.java   
public RWModContainer() {
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId = "regionalwater";
    meta.name = "Regional Water";
    meta.description = "Enables infinite water in only certain biomes and dimensions that are specified in the config file";
    meta.version = "1.7.10-1.0";
    meta.logoFile = "assets/regionalwater/regionalwaterlogo.png";
    meta.url = "https://github.com/Zerrens/Regional-Water";
    meta.authorList = Arrays.asList("Velleth");
}
项目:AntiMatterMod    文件:AMMCoreDummyContainer.java   
public AMMCoreDummyContainer(){
    super(new ModMetadata());
    ModMetadata metadata = getMetadata();
    metadata.name = "AMMCore-ASM";
    metadata.modId = metadata.name.toLowerCase();
    metadata.version = "1.0.0";
    metadata.authorList.add("C6H2Cl2");
    setEnabledState(true);
    metadata.autogenerated = false;
}
项目:AntiMatterMod    文件:AntiMatterModCore.java   
private void loadMeta(ModMetadata metadata) {
    metadata.modId = MOD_ID;
    metadata.name = MOD_NAME;
    metadata.version = MOD_VERSION;
    metadata.authorList.add("C6H2Cl2");
    metadata.authorList.add("Raiti-Chan");
    metadata.authorList.add("Kojin15");
    metadata.authorList.add("Worldofthetakumi");
    metadata.authorList.add("Sora-Suke");
    metadata.description = "Make Anti-Matter in Minecraft!";
    metadata.autogenerated = false;
}
项目:CollectiveFramework    文件:DummyContainer.java   
public DummyContainer() {
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId = Reference.MOD_ID+"Core";
    meta.name = Reference.MOD_NAME+" Core";
    meta.version = Reference.VERSION;
}
项目:Elite-Armageddon    文件:EAPluginContainer.java   
public EAPluginContainer(File file)
{
    ModMetadata stub = new ModMetadata();
    stub.modId = file.getName().toLowerCase();
    stub.name = file.getName();
    stub.version = "eaLua Compatible Plugin 1.0";
    this.container = (ModContainer)new DummyModContainer(stub);
}
项目:ModpackInfo    文件:XmlHelpers.java   
protected static void addModInfo(Document doc, Element parent,
        ModContainer mod) {

    Element modInfo = doc.createElement("Mod");
    modInfo.setAttribute("name", mod.getName());
    modInfo.setAttribute("id", mod.getModId());
    modInfo.setAttribute("version", mod.getDisplayVersion());

    ModMetadata meta = mod.getMetadata();

    if (meta != null) {

        if (meta.description != null && !meta.description.isEmpty()) {
            addProperty(doc, modInfo, "description", meta.description);
        }

        if (meta.credits != null && !meta.credits.isEmpty()) {
            addProperty(doc, modInfo, "credits", meta.credits);
        }

        if (meta.authorList != null && !meta.authorList.isEmpty()) {
            addProperty(doc, modInfo, "authors",
                    StringUtils.join(meta.authorList, ", "));
        }

        addProperty(doc, modInfo, "url",
                meta.url.isEmpty() ? "Not supplied" : meta.url);
    }

    parent.appendChild(modInfo);
}
项目:LambdaLib    文件:LLModContainer.java   
private static ModMetadata getModMetadata() {
    ModMetadata metadata = new ModMetadata();
    metadata.modId = MODID;
    metadata.name = "LambdaLib|Core";
    metadata.version = LambdaLib.VERSION;

    return metadata;
}
项目:Feelcraft    文件:FeelcraftDummyContainer.java   
/**
 * Inits the mod metadata infos
 */
public FeelcraftDummyContainer() {
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId = "Feelcraft";
    meta.name = "Feelcraft";
    meta.version = "0.0.1-ALPHA";
    meta.credits = "TheShark34";
    meta.authorList = Arrays.asList("TheShark34");
    meta.description = "A new Minecraft experience - This mod will get your Minecraft window into a virtual desktop, with other little windows created by community plugins.";
    meta.url = "https://github.com/TheShark34/Feelcraft";
    meta.updateUrl = "https://github.com/TheShark34/Feelcraft";
    meta.screenshots = new String[0];
    meta.logoFile = "/logo.png";
}
项目:NoTimeFix    文件:NoTimeFix.java   
public NoTimeFix() {
    super(new ModMetadata());

    ModMetadata metadata = getMetadata();
    metadata.modId = NoTimeFix.MODID;
    metadata.version = NoTimeFix.VERSION;
    metadata.name = NoTimeFix.MODNAME;
    metadata.authorList = ImmutableList.of("Cannibalvox");
    metadata.url = "http://www.technicpack.net/";
    metadata.credits = "Developed by Technic";
    metadata.description = "Who has time to debug things?";
}
项目:FastAsyncWorldedit    文件:FaweForge.java   
public FaweForge(ForgeMain plugin, Logger logger, ModMetadata mod, File directory) {
    this.parent = plugin;
    this.logger = logger;
    this.directory = directory;
    this.mod = mod;
    try {
        Fawe.set(this);
        setupInjector();
    } catch (InstanceAlreadyExistsException e) {
        MainUtil.handleError(e);
    }
}
项目:animated-texture-fix    文件:AnimfixModContainer.java   
public AnimfixModContainer() {
    super(new ModMetadata());
    ModMetadata meta = getMetadata();
    meta.modId="animfix";
    meta.name="Animated Texture Fix";
    meta.version="0.3";
    meta.authorList= Arrays.asList("Kobata");
    meta.description="Makes animated textures faster.";
}
项目:BlightCore    文件:BlightCore.java   
public BlightCore() {
    super(new ModMetadata());

    ModMetadata metadata = getMetadata();
    metadata.modId = BlightCore.MODID;
    metadata.version = BlightCore.VERSION;
    metadata.name = BlightCore.MODNAME;
    metadata.authorList = ImmutableList.of("Cannibalvox");
    metadata.url = "http://www.technicpack.net/";
    metadata.credits = "Developed by Technic";
    metadata.description = "It's a coremod.  For blightfall!";
}