remove TerraWorld#getBiomeProvider

This commit is contained in:
dfsek
2021-07-22 13:33:19 -07:00
parent 2948f25b50
commit 7f050b37a4
2 changed files with 0 additions and 13 deletions

View File

@@ -8,8 +8,6 @@ import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
public interface TerraWorld {
World getWorld();
BiomeProvider getBiomeProvider();
WorldConfig getConfig();
/**

View File

@@ -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.world.TerraWorld;
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.generator.Palette;
import com.dfsek.terra.api.world.generator.Sampler;
import com.dfsek.terra.config.pack.WorldConfigImpl;
import net.jafama.FastMath;
public class TerraWorldImpl implements TerraWorld {
private final BiomeProvider provider;
private final WorldConfigImpl config;
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!");
this.world = w;
config = (WorldConfigImpl) c.toWorldConfig(this);
this.provider = config.getProvider();
main.getEventManager().callEvent(new TerraWorldLoadEvent(this, c));
}
@@ -34,11 +28,6 @@ public class TerraWorldImpl implements TerraWorld {
}
@Override
public BiomeProvider getBiomeProvider() {
return provider;
}
@Override
public WorldConfigImpl getConfig() {
return config;