mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
fix final config template values
This commit is contained in:
@@ -16,7 +16,7 @@ public class ImageProviderTemplate implements ObjectTemplate<BiomeProvider> {
|
||||
private final Registry<TerraBiome> biomes;
|
||||
@Value("resolution")
|
||||
@Default
|
||||
private final int resolution = 1;
|
||||
private int resolution = 1;
|
||||
@Value("image.name")
|
||||
private BufferedImage image;
|
||||
@Value("image.align")
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.dfsek.terra.api.structure.feature.Distributor;
|
||||
public class NoiseDistributorTemplate implements ObjectTemplate<Distributor> {
|
||||
@Value("threshold")
|
||||
@Default
|
||||
private final @Meta double threshold = 0;
|
||||
private @Meta double threshold = 0;
|
||||
@Value("distribution")
|
||||
private @Meta NoiseSampler noise;
|
||||
|
||||
|
||||
@@ -11,23 +11,23 @@ import com.dfsek.terra.api.noise.NoiseSampler;
|
||||
public class GaborNoiseTemplate extends NoiseTemplate<GaborNoiseSampler> {
|
||||
@Value("rotation")
|
||||
@Default
|
||||
private final @Meta double rotation = 0.25;
|
||||
private @Meta double rotation = 0.25;
|
||||
|
||||
@Value("isotropic")
|
||||
@Default
|
||||
private final @Meta boolean isotropic = true;
|
||||
private @Meta boolean isotropic = true;
|
||||
|
||||
@Value("deviation")
|
||||
@Default
|
||||
private final @Meta double deviation = 1.0;
|
||||
private @Meta double deviation = 1.0;
|
||||
|
||||
@Value("impulses")
|
||||
@Default
|
||||
private final @Meta double impulses = 64d;
|
||||
private @Meta double impulses = 64d;
|
||||
|
||||
@Value("frequency_0")
|
||||
@Default
|
||||
private final @Meta double f0 = 0.625;
|
||||
private @Meta double f0 = 0.625;
|
||||
|
||||
@Override
|
||||
public NoiseSampler get() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.dfsek.terra.api.structure.configured.ConfiguredStructure;
|
||||
public class BiomeStructuresTemplate implements ObjectTemplate<BiomeStructures> {
|
||||
@Value("structures")
|
||||
@Default
|
||||
private final @Meta Set<@Meta ConfiguredStructure> structures = Collections.emptySet();
|
||||
private @Meta Set<@Meta ConfiguredStructure> structures = Collections.emptySet();
|
||||
|
||||
@Override
|
||||
public BiomeStructures get() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.dfsek.terra.api.structure.feature.Feature;
|
||||
public class BiomeFeaturesTemplate implements ObjectTemplate<BiomeFeatures> {
|
||||
@Value("features")
|
||||
@Default
|
||||
private final @Meta List<@Meta Feature> features = Collections.emptyList();
|
||||
private @Meta List<@Meta Feature> features = Collections.emptyList();
|
||||
|
||||
@Override
|
||||
public BiomeFeatures get() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.dfsek.terra.api.config.meta.Meta;
|
||||
public class BiomeFloraTemplate implements ObjectTemplate<BiomeFlora> {
|
||||
@Value("flora")
|
||||
@Default
|
||||
private final @Meta List<@Meta FloraLayer> flora = Collections.emptyList();
|
||||
private @Meta List<@Meta FloraLayer> flora = Collections.emptyList();
|
||||
|
||||
@Override
|
||||
public BiomeFlora get() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.dfsek.terra.api.addon.TerraAddon;
|
||||
public class ConfigPackAddonsTemplate implements ConfigTemplate {
|
||||
@Value("addons")
|
||||
@Default
|
||||
private final Set<TerraAddon> addons = new HashSet<>();
|
||||
private Set<TerraAddon> addons = new HashSet<>();
|
||||
|
||||
|
||||
public Set<TerraAddon> getAddons() {
|
||||
|
||||
@@ -11,8 +11,7 @@ import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
||||
public class ColorConfigTemplate implements ConfigTemplate {
|
||||
@Value("enable")
|
||||
@Default
|
||||
private @Meta
|
||||
final boolean enable = false;
|
||||
private @Meta boolean enable = false;
|
||||
@Value("colors")
|
||||
private @Meta ProbabilityCollection<@Meta Integer> colors;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user