2020-02-11 08:32:56 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright 2014-2019, the Biomes O' Plenty Team
|
|
|
|
*
|
|
|
|
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
|
|
|
|
*
|
|
|
|
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
|
|
|
******************************************************************************/
|
|
|
|
package biomesoplenty.common.biome;
|
|
|
|
|
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
2020-02-22 07:31:50 +00:00
|
|
|
import java.util.Map;
|
2020-02-14 02:18:48 +00:00
|
|
|
import java.util.TreeMap;
|
2020-02-11 08:32:56 +00:00
|
|
|
|
|
|
|
public class BiomeConfigData
|
|
|
|
{
|
|
|
|
@SerializedName("standard_weights")
|
2020-02-18 11:53:47 +00:00
|
|
|
public TreeMap<String, WeightedBiomeEntry> standardBiomeWeights = Maps.newTreeMap();
|
2020-02-11 08:32:56 +00:00
|
|
|
|
2020-02-22 09:02:17 +00:00
|
|
|
@SerializedName("technical_biome_toggles")
|
|
|
|
public TreeMap<String, ToggleableBiomeEntry> technicalBiomeEntries = Maps.newTreeMap();
|
|
|
|
|
2020-02-11 08:32:56 +00:00
|
|
|
@SerializedName("sub_biome_weights")
|
2020-02-14 02:18:48 +00:00
|
|
|
public TreeMap<String, SubBiomeEntry> subBiomeEntries = Maps.newTreeMap();
|
2020-02-11 08:32:56 +00:00
|
|
|
|
2020-02-22 07:31:50 +00:00
|
|
|
@SerializedName("island_biome_toggles")
|
2020-02-22 09:02:17 +00:00
|
|
|
public TreeMap<String, ToggleableBiomeEntry> islandBiomeEntries = Maps.newTreeMap();
|
2020-02-11 08:32:56 +00:00
|
|
|
|
2020-02-18 11:53:47 +00:00
|
|
|
@SerializedName("vanilla_biome_weights")
|
|
|
|
public TreeMap<String, WeightedBiomeEntry> vanillaBiomeEntries = Maps.newTreeMap();
|
|
|
|
|
|
|
|
public static class WeightedBiomeEntry
|
2020-02-14 00:01:09 +00:00
|
|
|
{
|
|
|
|
public int weight;
|
|
|
|
|
2020-02-18 11:53:47 +00:00
|
|
|
public WeightedBiomeEntry(int weight)
|
2020-02-14 00:01:09 +00:00
|
|
|
{
|
|
|
|
this.weight = weight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-22 07:31:50 +00:00
|
|
|
public static class ToggleableBiomeEntry
|
|
|
|
{
|
|
|
|
public boolean enabled;
|
|
|
|
|
|
|
|
public ToggleableBiomeEntry(boolean enabled)
|
|
|
|
{
|
|
|
|
this.enabled = enabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-14 00:01:09 +00:00
|
|
|
public static class SubBiomeEntry
|
2020-02-11 08:32:56 +00:00
|
|
|
{
|
|
|
|
public int weight;
|
|
|
|
public float rarity;
|
|
|
|
|
|
|
|
public SubBiomeEntry(int weight, float rarity)
|
|
|
|
{
|
|
|
|
this.weight = weight;
|
|
|
|
this.rarity = rarity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|