@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; }
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; } }
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); }
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"; }
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 = ""; }
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()); } }
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()); } }
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()); } }
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()); } }
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()); } }
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()); } }
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 = ""; }
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; }
@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-/"; }
@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-/"; }
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/"; }
private static ModMetadata createContainerMetadata() { final ModMetadata metadata = new ModMetadata(); metadata.modId = "kimagine"; metadata.name = "KImagine"; metadata.version = "0.2"; return metadata; }
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"); }
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; }
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; }
public DummyContainer() { super(new ModMetadata()); ModMetadata meta = getMetadata(); meta.modId = Reference.MOD_ID+"Core"; meta.name = Reference.MOD_NAME+" Core"; meta.version = Reference.VERSION; }
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); }
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); }
private static ModMetadata getModMetadata() { ModMetadata metadata = new ModMetadata(); metadata.modId = MODID; metadata.name = "LambdaLib|Core"; metadata.version = LambdaLib.VERSION; return metadata; }
/** * 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"; }
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?"; }
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); } }
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."; }
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!"; }