Beispiel #1
0
 public static int configurationProperties() {
   configuration.load();
   mtDoorBlockID =
       Integer.parseInt(configuration.getOrCreateBlockIdProperty("mtDoorID", 196).value);
   mtDoorItemID =
       Integer.parseInt(
           configuration.getOrCreateIntProperty("mtDoorItemID", Configuration.CATEGORY_ITEM, 7004)
               .value);
   configuration.save();
   return mtDoorBlockID;
 }
 public static void savePokedexProps() {
   Property p = configuration.getOrCreateBooleanProperty("Metric", "Pokedex", true);
   p.value = String.valueOf(isInMetric);
   configuration.save();
 }
  private static int configurationProperties() {
    configuration.load();
    pokemonHealerActiveId =
        Integer.parseInt(
            configuration.getOrCreateBlockIdProperty("PokemonHealerActive", 201).value);
    pokemonHealerIdleId =
        Integer.parseInt(configuration.getOrCreateBlockIdProperty("PokemonHealerIdle", 202).value);
    thunderStoneOreId =
        Integer.parseInt(configuration.getOrCreateBlockIdProperty("ThunderStoneOre", 203).value);
    leafStoneOreId =
        Integer.parseInt(configuration.getOrCreateBlockIdProperty("LeafStoneOre", 204).value);
    pcId = Integer.parseInt(configuration.getOrCreateBlockIdProperty("PC", 205).value);
    waterStoneOreId =
        Integer.parseInt(configuration.getOrCreateBlockIdProperty("WaterStoneOre", 206).value);
    IDListPixelmon.load(configuration);
    IDListTrainer.load(configuration);

    isInMetric =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("Metric", "Pokedex", true)).value);

    spawnCaveSpider =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnCaveSpider", "Vanilla Spawns", false))
                .value);
    spawnChicken =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnChicken", "Vanilla Spawns", false))
                .value);
    spawnCow =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnCow", "Vanilla Spawns", false)).value);
    spawnCreeper =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnCreeper", "Vanilla Spawns", false))
                .value);
    spawnEnderman =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnEnderman", "Vanilla Spawns", false))
                .value);
    spawnGhast =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnGhast", "Vanilla Spawns", false))
                .value);
    spawnGiantZombie =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnGiantZombie", "Vanilla Spawns", false))
                .value);
    spawnGolem =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnGolem", "Vanilla Spawns", false))
                .value);
    spawnMooshroom =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnMooshroom", "Vanilla Spawns", false))
                .value);
    spawnOcelot =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnOcelot", "Vanilla Spawns", false))
                .value);
    spawnPig =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnPig", "Vanilla Spawns", false)).value);
    spawnPigZombie =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnPigZombie", "Vanilla Spawns", false))
                .value);
    spawnSheep =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSheep", "Vanilla Spawns", false))
                .value);
    spawnSilverFish =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSilverFish", "Vanilla Spawns", false))
                .value);
    spawnSkeleton =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSkeleton", "Vanilla Spawns", false))
                .value);
    spawnSlime =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSlime", "Vanilla Spawns", false))
                .value);
    spawnSpider =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSpider", "Vanilla Spawns", false))
                .value);
    spawnSquid =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnSquid", "Vanilla Spawns", false))
                .value);
    spawnWolf =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnWolf", "Vanilla Spawns", false)).value);
    spawnZombie =
        Boolean.parseBoolean(
            (configuration.getOrCreateBooleanProperty("SpawnZombie", "Vanilla Spawns", false))
                .value);

    numGroundPokemon =
        Integer.parseInt(
            (configuration.getOrCreateIntProperty(
                    "NumberNonWaterPixelmonSpawns", "Overall Spawning settings", 100))
                .value);
    numWaterPokemon =
        Integer.parseInt(
            (configuration.getOrCreateIntProperty(
                    "NumberWaterPixelmonSpawns", "Overall Spawning settings", 100))
                .value);
    spawnFrequency =
        Integer.parseInt(
            (configuration.getOrCreateIntProperty(
                    "SpawnFrequency", "Overall Spawning settings", 10))
                .value);
    configuration.save();
    return pokemonHealerIdleId;
  }