當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。