move elevation interpolation to new addon

This commit is contained in:
dfsek 2021-12-02 17:44:30 -07:00
parent c68d092814
commit b9c77fbdfa
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package com.dfsek.terra.addons.chunkgenerator.config;
import com.dfsek.tectonic.config.ConfigTemplate;
public class NoiseChunkGeneratorPackConfig implements ConfigTemplate {
private final int elevationBlend;
public NoiseChunkGeneratorPackConfig(int elevationBlend) {
this.elevationBlend = elevationBlend;
}
}

View File

@ -0,0 +1,19 @@
package com.dfsek.terra.addons.chunkgenerator.config;
import com.dfsek.tectonic.annotations.Default;
import com.dfsek.tectonic.annotations.Value;
import com.dfsek.tectonic.config.ConfigTemplate;
import com.dfsek.tectonic.loading.object.ObjectTemplate;
import com.dfsek.terra.api.config.meta.Meta;
public class NoiseChunkGeneratorPackConfigTemplate implements ConfigTemplate {
@Value("blend.terrain.elevation")
@Default
private @Meta int elevationBlend = 4;
public int getElevationBlend() {
return elevationBlend;
}
}

View File

@ -0,0 +1,8 @@
import com.dfsek.terra.version
version = version("0.1.0")
dependencies {
shadedApi(project(":common:addons:manifest-addon-loader"))
shadedApi(project(":common:addons:chunk-generator-noise-3d"))
}

View File

@ -0,0 +1,12 @@
schema-version: 1
contributors:
- Terra contributors
id: structure-terrascript-loader
version: @VERSION@
entrypoints:
- "com.dfsek.terra.addons.terrascript.TerraScriptAddon"
website:
issues: https://github.com/PolyhedralDev/Terra-structure-terrascript-loader/issues
source: https://github.com/PolyhedralDev/Terra-structure-terrascript-loader
docs: https://github.com/PolyhedralDev/Terra/wiki
license: GNU LGPL v3.0