remove TerraWorld#getConfig

This commit is contained in:
dfsek
2021-07-22 14:00:16 -07:00
parent 8898bbd5c4
commit ea60b30321
2 changed files with 0 additions and 10 deletions

View File

@@ -8,8 +8,6 @@ import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
public interface TerraWorld {
World getWorld();
WorldConfig getConfig();
/**
* Get a block at an ungenerated location
*

View File

@@ -9,13 +9,11 @@ import com.dfsek.terra.api.world.World;
import com.dfsek.terra.config.pack.WorldConfigImpl;
public class TerraWorldImpl implements TerraWorld {
private final WorldConfigImpl config;
private final World world;
public TerraWorldImpl(World w, ConfigPack c, TerraPlugin main) {
if(!w.isTerraWorld()) throw new IllegalArgumentException("World " + w + " is not a Terra World!");
this.world = w;
config = (WorldConfigImpl) c.toWorldConfig(w);
}
@@ -25,12 +23,6 @@ public class TerraWorldImpl implements TerraWorld {
}
@Override
public WorldConfigImpl getConfig() {
return config;
}
@Override
public BlockState getUngeneratedBlock(int x, int y, int z) {
return world.getTerraGenerator().getBlock(world, x, y, z);