mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-24 09:06:39 +00:00
make platform biome return singular
This commit is contained in:
@@ -53,7 +53,7 @@ public class BiomeTemplate implements AbstractableTemplate, ValidatedConfigTempl
|
||||
private @Meta NoiseSampler carvingEquation = NoiseSampler.zero();
|
||||
|
||||
@Value("vanilla")
|
||||
private @Meta ProbabilityCollection<PlatformBiome> vanilla;
|
||||
private @Meta PlatformBiome vanilla;
|
||||
|
||||
@Value("biome-noise")
|
||||
@Default
|
||||
@@ -198,7 +198,7 @@ public class BiomeTemplate implements AbstractableTemplate, ValidatedConfigTempl
|
||||
return id;
|
||||
}
|
||||
|
||||
public ProbabilityCollection<PlatformBiome> getVanilla() {
|
||||
public PlatformBiome getVanilla() {
|
||||
return vanilla;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.dfsek.terra.api.world.biome.GenerationSettings;
|
||||
*/
|
||||
public class UserDefinedBiome implements Biome {
|
||||
private final UserDefinedGenerationSettings gen;
|
||||
private final ProbabilityCollection<PlatformBiome> vanilla;
|
||||
private final PlatformBiome vanilla;
|
||||
private final String id;
|
||||
private final BiomeTemplate config;
|
||||
private final int color;
|
||||
@@ -29,7 +29,7 @@ public class UserDefinedBiome implements Biome {
|
||||
|
||||
private final Context context = new Context();
|
||||
|
||||
public UserDefinedBiome(ProbabilityCollection<PlatformBiome> vanilla, UserDefinedGenerationSettings gen, BiomeTemplate config) {
|
||||
public UserDefinedBiome(PlatformBiome vanilla, UserDefinedGenerationSettings gen, BiomeTemplate config) {
|
||||
this.vanilla = vanilla;
|
||||
this.gen = gen;
|
||||
this.id = config.getID();
|
||||
@@ -50,7 +50,7 @@ public class UserDefinedBiome implements Biome {
|
||||
* @return Collection of biomes to represent the custom biome.
|
||||
*/
|
||||
@Override
|
||||
public ProbabilityCollection<PlatformBiome> getVanillaBiomes() {
|
||||
public PlatformBiome getPlatformBiome() {
|
||||
return vanilla;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BiomeInfoCommand implements CommandTemplate {
|
||||
@Override
|
||||
public void execute(CommandSender sender) {
|
||||
sender.sendMessage("Biome info for \"" + biome.getID() + "\".");
|
||||
sender.sendMessage("Vanilla biome: " + biome.getVanillaBiomes());
|
||||
sender.sendMessage("Vanilla biome: " + biome.getPlatformBiome());
|
||||
|
||||
if(biome instanceof UserDefinedBiome) {
|
||||
BiomeTemplate bio = ((UserDefinedBiome) biome).getConfig();
|
||||
|
||||
Reference in New Issue
Block a user