mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
clean up BiomeTemplate
This commit is contained in:
parent
41be7598ea
commit
07e8360c90
@ -51,39 +51,10 @@ public class BiomeTemplate implements AbstractableTemplate, ValidatedConfigTempl
|
|||||||
@Value("vanilla")
|
@Value("vanilla")
|
||||||
private @Meta PlatformBiome vanilla;
|
private @Meta PlatformBiome vanilla;
|
||||||
|
|
||||||
@Value("blend.distance")
|
|
||||||
@Default
|
|
||||||
private @Meta int blendDistance = 3;
|
|
||||||
|
|
||||||
@Value("ocean.level")
|
|
||||||
@Default
|
|
||||||
private @Meta int seaLevel = 62;
|
|
||||||
|
|
||||||
@Value("slabs.enable")
|
|
||||||
@Default
|
|
||||||
private @Meta boolean doSlabs = false;
|
|
||||||
|
|
||||||
@Value("slabs.threshold")
|
|
||||||
@Default
|
|
||||||
private @Meta double slabThreshold = 0.0075D;
|
|
||||||
|
|
||||||
@Value("slabs.palettes")
|
|
||||||
@Default
|
|
||||||
private @Meta Map<@Meta BlockType, @Meta Palette> slabPalettes;
|
|
||||||
|
|
||||||
@Value("slabs.stair-palettes")
|
|
||||||
@Default
|
|
||||||
private @Meta Map<@Meta BlockType, @Meta Palette> stairPalettes;
|
|
||||||
|
|
||||||
@Value("interpolate-elevation")
|
|
||||||
@Default
|
|
||||||
private @Meta boolean interpolateElevation = true;
|
|
||||||
|
|
||||||
@Value("color")
|
@Value("color")
|
||||||
@Final
|
@Final
|
||||||
@Default
|
@Default
|
||||||
private @Meta int color = 0;
|
private @Meta int color = 0;
|
||||||
|
|
||||||
@Value("tags")
|
@Value("tags")
|
||||||
@Default
|
@Default
|
||||||
private @Meta Set<@Meta String> tags = new HashSet<>();
|
private @Meta Set<@Meta String> tags = new HashSet<>();
|
||||||
@ -97,14 +68,6 @@ public class BiomeTemplate implements AbstractableTemplate, ValidatedConfigTempl
|
|||||||
this.pack = pack;
|
this.pack = pack;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean interpolateElevation() {
|
|
||||||
return interpolateElevation;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean doSlabs() {
|
|
||||||
return doSlabs;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean validate() throws ValidationException {
|
public boolean validate() throws ValidationException {
|
||||||
color |= 0xff000000; // Alpha adjustment
|
color |= 0xff000000; // Alpha adjustment
|
||||||
@ -127,30 +90,10 @@ public class BiomeTemplate implements AbstractableTemplate, ValidatedConfigTempl
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBlendDistance() {
|
|
||||||
return blendDistance;
|
|
||||||
}
|
|
||||||
|
|
||||||
public double getSlabThreshold() {
|
|
||||||
return slabThreshold;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<BlockType, Palette> getSlabPalettes() {
|
|
||||||
return slabPalettes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<BlockType, Palette> getStairPalettes() {
|
|
||||||
return stairPalettes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ConfigPack getPack() {
|
public ConfigPack getPack() {
|
||||||
return pack;
|
return pack;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSeaLevel() {
|
|
||||||
return seaLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user