Stop zones implementing FacetProvider
import org.terasology.world.chunks.ChunkBlockIterator;
import org.terasology.world.chunks.CoreChunk;
import org.terasology.world.generation.FacetProvider;
-import org.terasology.world.generation.GeneratingRegion;
import org.terasology.world.generation.Region;
import org.terasology.world.generation.WorldRasterizer;
import org.terasology.world.generator.WorldGenerator;
import java.util.function.Function;
@API
-public class Zone implements FacetProvider, WorldRasterizer {
+public class Zone implements WorldRasterizer {
private final List<FacetProvider> facetProviders = new ArrayList<>();
private final List<WorldRasterizer> rasterizers = new ArrayList<>();
@@ -57,21 +56,11 @@ public Zone(String name, Function<BaseVector3i, Boolean> regionFunction) {
this(name, (pos, region) -> regionFunction.apply(pos));
}
- @Override
- public void setSeed(long seed) {
- facetProviders.forEach(fp -> fp.setSeed(seed));
- }
-
@Override
public void initialize() {
rasterizers.forEach(WorldRasterizer::initialize);
}
- @Override
- public void process(GeneratingRegion region) {
- facetProviders.forEach(fp -> fp.process(region));
- }
-
@Override
public void generateChunk(CoreChunk chunk, Region chunkRegion) {
//Save the blocks that aren't meant to be changed
