Examples of FMLModContainer


Examples of cpw.mods.fml.common.FMLModContainer

         
          HashMap<String, Object> map = new HashMap<String, Object>();
          map.put("modid", "FlansMod");
          map.put("name", "Flan's Mod : " + file.getName());
          map.put("version", "1");
          FMLModContainer container = new FMLModContainer("com.flansmod.common.FlansMod", new ModCandidate(file, file, file.isDirectory() ? ContainerType.DIR : ContainerType.JAR), map);
          container.bindMetadata(MetadataCollection.from(null, ""));
          FMLClientHandler.instance().addModAsResource(container);
       
        } catch (Exception e)
        {
          FlansMod.log("Failed to load images for content pack : " + file.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.