Package net.minecraftforge.common.config

Examples of net.minecraftforge.common.config.Configuration$UnicodeInputStreamReader


    public static boolean enableFire = true;

    public static boolean cropsAllowBonemeal = true;

    public static void loadConfig(File configFile) {
        config = new Configuration(configFile);

        new ConfigCategory(CATEGORY_POTIONS);
        new ConfigCategory(CATEGORY_ENCHANTMENTS);
        new ConfigCategory(CATEGORY_KAMI_ITEMS);
        new ConfigCategory(CATEGORY_KAMI_BLOCKS);
View Full Code Here


public class OpenPeripheralCore {

  @Mod.EventHandler
  public void preInit(FMLPreInitializationEvent evt) {
    final File configFile = evt.getSuggestedConfigurationFile();
    Configuration config = new Configuration(configFile);
    ConfigProcessing.processAnnotations(configFile, ModInfo.ID, config, Config.class);
    if (config.hasChanged()) config.save();
  }
View Full Code Here

    if(!configDirectory.exists()) {
      configDirectory.mkdir();
    }

    File configFile = new File(configDirectory, "EnderIO.cfg");
    config = new Configuration(configFile);
    syncConfig();
  }
View Full Code Here

    @EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
        Version.init(event.getVersionProperties());
        event.getModMetadata().version = Version.fullVersionString();
        Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
        try
        {
            cfg.load();
            ChestChangerType.buildItems(cfg);
            CACHE_RENDER = cfg.get(Configuration.CATEGORY_GENERAL, "cacheRenderingInformation", true).getBoolean(true);
            OCELOTS_SITONCHESTS = cfg.get(Configuration.CATEGORY_GENERAL, "ocelotsSitOnChests", true).getBoolean(true);
        }
        catch (Exception e)
        {
            FMLLog.log(Level.ERROR, e, "IronChest has a problem loading it's configuration");
        }
        finally
        {
            if (cfg.hasChanged())
                cfg.save();
        }
        ironChestBlock = new BlockIronChest();
        GameRegistry.registerBlock(ironChestBlock, ItemIronChest.class, "BlockIronChest");
        PacketHandler.INSTANCE.ordinal();
    }
View Full Code Here

  public static Configuration config;
  public static Item itemRing;
   
  public static void initialize(File file)
    {
    config = new Configuration(file);
        config.load();
       
        itemRing =(new ItemRing()).setUnlocalizedName("Ring");
    GameRegistry.registerItem(itemRing, "Ring", Baubles.MODID);       
       
View Full Code Here

  public static int flowerQuantity = 2;
  public static int flowerDensity = 16;

  public static void loadConfig(File configFile) {
    config = new Configuration(configFile);

    config.load();
    load();

    FMLCommonHandler.instance().bus().register(new ChangeListener());
View Full Code Here

    public static boolean NEISupport = false;

    public static void init(File configFile) {
        if(config == null) {
            config = new Configuration(configFile);
            loadConfiguration();
        }
    }
View Full Code Here

  public void preInit(FMLPreInitializationEvent event)
  {
    File config = event.getSuggestedConfigurationFile();
   
    //Set the mod's configuration
    configuration = new Configuration(config);
   
    if(config.getAbsolutePath().contains("voltz"))
    {
      logger.info("Detected Voltz in root directory - hello, fellow user!");
    }
View Full Code Here

     */
    public static void setDefaultValues(File file)
    {
        if (EnergyConfigHandler.config == null)
        {
            EnergyConfigHandler.config = new Configuration(file);
        }

        EnergyConfigHandler.config.load();
        EnergyConfigHandler.IC2_RATIO = (float) EnergyConfigHandler.config.get("Compatibility", "IndustrialCraft Conversion Ratio", EnergyConfigHandler.IC2_RATIO).getDouble(EnergyConfigHandler.IC2_RATIO);
        //EnergyConfigHandler.TE_RATIO = (float) EnergyConfigHandler.config.get("Compatibility", "Thermal Expansion Conversion Ratio", EnergyConfigHandler.TE_RATIO).getDouble(EnergyConfigHandler.TE_RATIO);
View Full Code Here

    public static void loadConfig(File file)
    {
        if (!ChunkLoadingCallback.configLoaded)
        {
            ChunkLoadingCallback.config = new Configuration(file);
        }

        try
        {
            // keepLoadedOffline = config.get("CHUNKLOADING",
View Full Code Here

TOP

Related Classes of net.minecraftforge.common.config.Configuration$UnicodeInputStreamReader

Copyright © 2018 www.massapicom. 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.