mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
remove TerraWorld#getConfig
This commit is contained in:
1 parent
8898bbd5c4
commit
ea60b30321
2 files changed
-10
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();
|
||||||
|
|
||||||
WorldConfig getConfig();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a block at an ungenerated location
|
* 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;
|
import com.dfsek.terra.config.pack.WorldConfigImpl;
|
||||||
|
|
||||||
public class TerraWorldImpl implements TerraWorld {
|
public class TerraWorldImpl implements TerraWorld {
|
||||||
private final WorldConfigImpl config;
|
|
||||||
private final World world;
|
private final World world;
|
||||||
|
|
||||||
public TerraWorldImpl(World w, ConfigPack c, TerraPlugin main) {
|
public TerraWorldImpl(World w, ConfigPack c, TerraPlugin main) {
|
||||||
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(w);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -25,12 +23,6 @@ public class TerraWorldImpl implements TerraWorld {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public WorldConfigImpl getConfig() {
|
|
||||||
return config;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState getUngeneratedBlock(int x, int y, int z) {
|
public BlockState getUngeneratedBlock(int x, int y, int z) {
|
||||||
return world.getTerraGenerator().getBlock(world, x, y, z);
|
return world.getTerraGenerator().getBlock(world, x, y, z);
|
||||||
|
|||||||
Reference in new issue
Block a user