mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 14:56:28 +00:00
remove TerraWorld#getConfig
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user