Now without biomes? Maybe
This commit is contained in:
parent
b4cca80243
commit
db28088c97
@ -39,7 +39,7 @@ public class ModBiomes {
|
|||||||
|
|
||||||
private static final ArrayList<BiomeVariant> biomes = new ArrayList<>();
|
private static final ArrayList<BiomeVariant> biomes = new ArrayList<>();
|
||||||
|
|
||||||
public static final Biome BRYCE = register(new Bryce());
|
/*public static final Biome BRYCE = register(new Bryce());
|
||||||
public static final Biome COLD_STEPPE = register(new ColdSteppe());
|
public static final Biome COLD_STEPPE = register(new ColdSteppe());
|
||||||
public static final Biome ERODED_PINNACLE = register(new StoneForest());
|
public static final Biome ERODED_PINNACLE = register(new StoneForest());
|
||||||
public static final Biome FIR_FOREST = register(new FirForest());
|
public static final Biome FIR_FOREST = register(new FirForest());
|
||||||
@ -53,7 +53,7 @@ public class ModBiomes {
|
|||||||
public static final Biome SNOWY_TAIGA_SCRUB = register(new SnowyTaigaScrub());
|
public static final Biome SNOWY_TAIGA_SCRUB = register(new SnowyTaigaScrub());
|
||||||
public static final Biome STEPPE = register(new Steppe());
|
public static final Biome STEPPE = register(new Steppe());
|
||||||
public static final Biome TAIGA_SCRUB = register(new TaigaScrub());
|
public static final Biome TAIGA_SCRUB = register(new TaigaScrub());
|
||||||
public static final Biome WARM_BEACH = register(new WarmBeach());
|
public static final Biome WARM_BEACH = register(new WarmBeach());*/
|
||||||
|
|
||||||
private static Biome register(BiomeVariant biome) {
|
private static Biome register(BiomeVariant biome) {
|
||||||
biomes.add(biome);
|
biomes.add(biome);
|
||||||
|
@ -12,9 +12,6 @@ public class DefaultBiomes {
|
|||||||
if (temperature < 0.25) {
|
if (temperature < 0.25) {
|
||||||
return Biomes.SNOWY_BEACH;
|
return Biomes.SNOWY_BEACH;
|
||||||
}
|
}
|
||||||
if (temperature > 0.75) {
|
|
||||||
return ModBiomes.WARM_BEACH;
|
|
||||||
}
|
|
||||||
return Biomes.BEACH;
|
return Biomes.BEACH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,17 +23,11 @@ public class DefaultBiomes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Biome defaultLake(float temperature) {
|
public static Biome defaultLake(float temperature) {
|
||||||
if (temperature < 0.15) {
|
return Biomes.OCEAN;
|
||||||
return ModBiomes.FROZEN_LAKE;
|
|
||||||
}
|
|
||||||
return ModBiomes.LAKE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Biome defaultWetland(float temperature) {
|
public static Biome defaultWetland(float temperature) {
|
||||||
if (temperature < 0.15) {
|
return Biomes.SWAMP;
|
||||||
return ModBiomes.TAIGA_SCRUB;
|
|
||||||
}
|
|
||||||
return ModBiomes.MARSHLAND;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Biome defaultOcean(float temperature) {
|
public static Biome defaultOcean(float temperature) {
|
||||||
@ -67,12 +58,6 @@ public class DefaultBiomes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Biome defaultBiome(float temperature) {
|
public static Biome defaultBiome(float temperature) {
|
||||||
if (temperature < 0.3) {
|
|
||||||
return ModBiomes.TAIGA_SCRUB;
|
|
||||||
}
|
|
||||||
if (temperature > 0.7) {
|
|
||||||
return ModBiomes.SAVANNA_SCRUB;
|
|
||||||
}
|
|
||||||
return Biomes.PLAINS;
|
return Biomes.PLAINS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,8 +107,6 @@ public class BiomeHelper {
|
|||||||
builder.addLand(BiomeType.TEMPERATE_RAINFOREST, Biomes.PLAINS, 5);
|
builder.addLand(BiomeType.TEMPERATE_RAINFOREST, Biomes.PLAINS, 5);
|
||||||
builder.addLand(BiomeType.TEMPERATE_FOREST, Biomes.FLOWER_FOREST, 2);
|
builder.addLand(BiomeType.TEMPERATE_FOREST, Biomes.FLOWER_FOREST, 2);
|
||||||
builder.addLand(BiomeType.TEMPERATE_FOREST, Biomes.PLAINS, 5);
|
builder.addLand(BiomeType.TEMPERATE_FOREST, Biomes.PLAINS, 5);
|
||||||
builder.addLand(BiomeType.TUNDRA, ModBiomes.SNOWY_TAIGA_SCRUB, 2);
|
|
||||||
builder.addLand(BiomeType.TAIGA, ModBiomes.TAIGA_SCRUB, 2);
|
|
||||||
|
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
@ -116,19 +116,12 @@ public class TerraSetupFactory {
|
|||||||
SurfaceManager manager = new SurfaceManager();
|
SurfaceManager manager = new SurfaceManager();
|
||||||
manager.replace(Biomes.DEEP_FROZEN_OCEAN, new IcebergsSurface(context, 30, 30));
|
manager.replace(Biomes.DEEP_FROZEN_OCEAN, new IcebergsSurface(context, 30, 30));
|
||||||
manager.replace(Biomes.FROZEN_OCEAN, new IcebergsSurface(context, 20, 15));
|
manager.replace(Biomes.FROZEN_OCEAN, new IcebergsSurface(context, 20, 15));
|
||||||
manager.append(ModBiomes.BRYCE, new BriceSurface(context.seed));
|
|
||||||
manager.append(ModBiomes.ERODED_PINNACLE, new StoneForestSurface(context.seed));
|
|
||||||
manager.append(
|
manager.append(
|
||||||
new DesertSurface(context),
|
new DesertSurface(context),
|
||||||
Biomes.DESERT,
|
Biomes.DESERT,
|
||||||
Biomes.DESERT_HILLS,
|
Biomes.DESERT_HILLS,
|
||||||
Biomes.DESERT_LAKES
|
Biomes.DESERT_LAKES
|
||||||
);
|
);
|
||||||
manager.replace(
|
|
||||||
new SwampSurface(),
|
|
||||||
Biomes.SWAMP.delegate.get(),
|
|
||||||
ModBiomes.MARSHLAND
|
|
||||||
);
|
|
||||||
manager.append(
|
manager.append(
|
||||||
new ForestSurface(context),
|
new ForestSurface(context),
|
||||||
Biomes.FOREST,
|
Biomes.FOREST,
|
||||||
|
@ -29,6 +29,7 @@ import com.terraforged.mod.biome.ModBiomes;
|
|||||||
import com.terraforged.world.terrain.Terrain;
|
import com.terraforged.world.terrain.Terrain;
|
||||||
import com.terraforged.world.terrain.Terrains;
|
import com.terraforged.world.terrain.Terrains;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
|
import net.minecraft.world.biome.Biomes;
|
||||||
|
|
||||||
public class Test {
|
public class Test {
|
||||||
|
|
||||||
@ -43,6 +44,6 @@ public class Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Biome getBiome() {
|
public static Biome getBiome() {
|
||||||
return ModBiomes.ERODED_PINNACLE;
|
return Biomes.OCEAN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user