当前位置: 首页>>代码示例>>Java>>正文


Java ModMetadata类代码示例

本文整理汇总了Java中cpw.mods.fml.common.ModMetadata的典型用法代码示例。如果您正苦于以下问题:Java ModMetadata类的具体用法?Java ModMetadata怎么用?Java ModMetadata使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ModMetadata类属于cpw.mods.fml.common包,在下文中一共展示了ModMetadata类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SPDummyContainer

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
public SPDummyContainer() 
{
	super(new ModMetadata());
	ModMetadata meta = getMetadata();
	meta.modId = "SoundPhysics";
	meta.name = "Sound Physics";
	meta.version = "@[email protected]";
	meta.credits = "Manoog";
	meta.authorList = Lists.newArrayList();
	meta.authorList.add("sonicether");
	meta.description = "Adds realistic sound attenuation, obstruction, and reverberation.";
	meta.url = ""; // TODO: Update this!
	meta.updateUrl = "";
	meta.screenshots = new String[0];
	meta.logoFile = "";
}
 
开发者ID:sonicether,项目名称:Sound-Physics,代码行数:17,代码来源:SPDummyContainer.java

示例2: getMetadata

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
@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;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:21,代码来源:NEIModContainer.java

示例3: detectOptifine

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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;
    }
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:17,代码来源:FMLClientHandler.java

示例4: ForgeModContainer

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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);
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:24,代码来源:ForgeModContainer.java

示例5: RorysModCore

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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";
}
 
开发者ID:roryclaasen,项目名称:RorysMod,代码行数:17,代码来源:RorysModCore.java

示例6: TickDynamicMod

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
public TickDynamicMod() {
	super(new ModMetadata());
	ModMetadata meta = getMetadata();
	meta.version = VERSION;
	meta.modId = MODID;
	meta.name = "Tick Dynamic";
	meta.description = "Dynamic control of the world tickrate to reduce apparent lag.";
	meta.authorList.add("Wildex999 ( [email protected] )");
	meta.updateUrl = "http://mods.stjerncraft.com/tickdynamic";
	meta.url = "http://mods.stjerncraft.com/tickdynamic";
	
	tickDynamic = this;
	tpsMutex = new Semaphore(1);
	tpsTimer = new Timer();
	tpsList = new LinkedList<Integer>();
	versionChecker = new VersionChecker();
}
 
开发者ID:wildex999,项目名称:TickDynamic,代码行数:18,代码来源:TickDynamicMod.java

示例7: ModContainer

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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 = "";
}
 
开发者ID:zmaster587,项目名称:AdvancedRocketry,代码行数:20,代码来源:ModContainer.java

示例8: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:19,代码来源:ShoulderSurfing.java

示例9: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:19,代码来源:ShoulderSurfing.java

示例10: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:19,代码来源:ShoulderSurfing.java

示例11: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:19,代码来源:ShoulderSurfing.java

示例12: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:19,代码来源:ShoulderSurfing.java

示例13: ShoulderSurfing

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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());
       }
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:17,代码来源:ShoulderSurfing.java

示例14: VRModContainer

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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 = "";
}
 
开发者ID:mabrowning,项目名称:minecraft-vr-base,代码行数:17,代码来源:VRModContainer.java

示例15: NAPIFMLModContainer

import cpw.mods.fml.common.ModMetadata; //导入依赖的package包/类
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;
}
 
开发者ID:Niadel,项目名称:N-API,代码行数:23,代码来源:NAPIFMLModContainer.java


注:本文中的cpw.mods.fml.common.ModMetadata类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。