mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 14:00:14 +00:00
remove TerraWorld#getBiomeProvider
This commit is contained in:
1 parent
2948f25b50
commit
7f050b37a4
2 files changed
-13
No files matched your search
@@ -8,8 +8,6 @@ import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
|
|||||||
public interface TerraWorld {
|
public interface TerraWorld {
|
||||||
World getWorld();
|
World getWorld();
|
||||||
|
|
||||||
BiomeProvider getBiomeProvider();
|
|
||||||
|
|
||||||
WorldConfig getConfig();
|
WorldConfig getConfig();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,15 +7,10 @@ import com.dfsek.terra.api.event.events.world.TerraWorldLoadEvent;
|
|||||||
import com.dfsek.terra.api.vector.Vector3;
|
import com.dfsek.terra.api.vector.Vector3;
|
||||||
import com.dfsek.terra.api.world.TerraWorld;
|
import com.dfsek.terra.api.world.TerraWorld;
|
||||||
import com.dfsek.terra.api.world.World;
|
import com.dfsek.terra.api.world.World;
|
||||||
import com.dfsek.terra.api.world.biome.TerraBiome;
|
|
||||||
import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
|
import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
|
||||||
import com.dfsek.terra.api.world.generator.Palette;
|
|
||||||
import com.dfsek.terra.api.world.generator.Sampler;
|
|
||||||
import com.dfsek.terra.config.pack.WorldConfigImpl;
|
import com.dfsek.terra.config.pack.WorldConfigImpl;
|
||||||
import net.jafama.FastMath;
|
|
||||||
|
|
||||||
public class TerraWorldImpl implements TerraWorld {
|
public class TerraWorldImpl implements TerraWorld {
|
||||||
private final BiomeProvider provider;
|
|
||||||
private final WorldConfigImpl config;
|
private final WorldConfigImpl config;
|
||||||
private final World world;
|
private final World world;
|
||||||
|
|
||||||
@@ -23,7 +18,6 @@ public class TerraWorldImpl implements TerraWorld {
|
|||||||
if(!w.isTerraWorld()) throw new IllegalArgumentException("World " + w + " is not a Terra World!");
|
if(!w.isTerraWorld()) throw new IllegalArgumentException("World " + w + " is not a Terra World!");
|
||||||
this.world = w;
|
this.world = w;
|
||||||
config = (WorldConfigImpl) c.toWorldConfig(this);
|
config = (WorldConfigImpl) c.toWorldConfig(this);
|
||||||
this.provider = config.getProvider();
|
|
||||||
main.getEventManager().callEvent(new TerraWorldLoadEvent(this, c));
|
main.getEventManager().callEvent(new TerraWorldLoadEvent(this, c));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,11 +28,6 @@ public class TerraWorldImpl implements TerraWorld {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public BiomeProvider getBiomeProvider() {
|
|
||||||
return provider;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WorldConfigImpl getConfig() {
|
public WorldConfigImpl getConfig() {
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in new issue
Block a user