Package forestry.core.config

Examples of forestry.core.config.Property


  @Override
  public void doInit() {
    config = Config.config;

    Property buildcraftignore = config.get("buildcraft.ignore", Config.CATEGORY_COMMON, false);
    buildcraftignore.Comment = "set to true to ignore buildcraft";
    PluginBuildCraft.ignore = Boolean.parseBoolean(buildcraftignore.Value);
    BuildcraftFuelRegistry.coolant.addCoolant(LiquidHelper.getFluid(Defaults.LIQUID_ICE), 10.0f);

    addIronEngineFuel(LiquidHelper.getLiquid(Defaults.LIQUID_ETHANOL, 1).getFluid(), 40,
View Full Code Here


  public void doInit() {
    super.doInit();

    apicultureConfig = new Configuration();

    Property property = apicultureConfig.get("apiary.sidesensitive", CONFIG_CATEGORY, apiarySideSensitive);
    property.Comment = "set to false if apiaries should output all items regardless of side a pipe is attached to";
    apiarySideSensitive = Boolean.parseBoolean(property.Value);

    property = apicultureConfig.get("render.bees.fancy", CONFIG_CATEGORY, fancyRenderedBees);
    property.Comment = "set to true to enable a fancy butterfly-like renderer for bees. (experimental!)";
View Full Code Here

    config.save();

  }

  private void initSetting(String ident, ItemStack def, String comment) {
    Property property = Config.config.get(ident, category, def.stackSize);
    property.Comment = comment;
    ItemStack changed = def.copy();
    changed.stackSize = Integer.parseInt(property.Value);
    stackSettings.put(ident, changed);
  }
View Full Code Here

    changed.stackSize = Integer.parseInt(property.Value);
    stackSettings.put(ident, changed);
  }

  private void initSetting(String ident, int def, int max, String comment) {
    Property property = Config.config.get(ident, category, def);
    if (max < 0) {
      property.Comment = comment;
      integerSettings.put(ident, Integer.parseInt(property.Value));
    } else {
      property.Comment = comment + " (max: " + max + ")";
View Full Code Here

    Config.config.set(ident, category, integerSettings.get(ident));

  }

  private void initSetting(String ident, float def, float max, String comment) {
    Property property = Config.config.get(ident, category, def);
    if (max < 0) {
      property.Comment = comment;
      floatSettings.put(ident, Float.parseFloat(property.Value));
    } else {
      property.Comment = comment + " (max: " + max + ")";
View Full Code Here

    }
    Config.config.set(ident, category, floatSettings.get(ident));
  }

  private void initSetting(String ident, boolean def, String comment) {
    Property property = Config.config.get(ident, category, def);
    property.Comment = comment;
    booleanSettings.put(ident, Boolean.parseBoolean(property.Value));
    Config.config.set(ident, category, booleanSettings.get(ident));
  }
View Full Code Here

  public void postInit() {
    scanForItems();

    config = new Configuration();

    Property backpackConf = config.get("backpacks.miner.items", CONFIG_CATEGORY, "");
    backpackConf.Comment = "add additional blocks and items for the miner's backpack here in the format id:meta. separate blocks and items using ';'. wildcard for metadata: '*'";
    parseBackpackItems("Miner's Backpack", backpackConf.Value, BackpackManager.definitions.get("miner"));
    backpackConf = config.get("backpacks.digger.items", CONFIG_CATEGORY, "");
    backpackConf.Comment = "add additional blocks and items for the digger's backpack here in the format id:meta. separate blocks and items using ';'. wildcard for metadata: '*'";
    parseBackpackItems("Digger's Backpack", backpackConf.Value, BackpackManager.definitions.get("digger"));
View Full Code Here

  @Override
  public void doInit() {
    config = new Configuration();

    Property property = config.get("entities.spawn.limit", CONFIG_CATEGORY, spawnConstraint);
    property.Comment = "determines the global butterfly entity count above which natural spawning of butterflies ceases.";
    spawnConstraint = Integer.parseInt(property.Value);

    property = config.get("entities.maximum.allowed", CONFIG_CATEGORY, entityConstraint);
    property.Comment = "determines the global butterfly entity count above which butterflies will stay in item form and will not take flight anymore.";
View Full Code Here

TOP

Related Classes of forestry.core.config.Property

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.