mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 13:30:10 +00:00
add optional getBaseBiome method
This commit is contained in:
1 parent
ee6ecb9613
commit
3b2f2ab679
1 file changed
+6
@@ -16,6 +16,7 @@ import com.dfsek.terra.api.world.info.WorldProperties;
|
|||||||
|
|
||||||
import org.jetbrains.annotations.Contract;
|
import org.jetbrains.annotations.Contract;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
import java.util.stream.StreamSupport;
|
import java.util.stream.StreamSupport;
|
||||||
|
|
||||||
@@ -63,6 +64,11 @@ public interface BiomeProvider {
|
|||||||
return getBiome(vector3.getX(), vector3.getY(), vector3.getZ(), seed);
|
return getBiome(vector3.getX(), vector3.getY(), vector3.getZ(), seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default Optional<Biome> getBaseBiome(int x, int z, long seed) {
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
default Column<Biome> getColumn(int x, int z, WorldProperties properties) {
|
default Column<Biome> getColumn(int x, int z, WorldProperties properties) {
|
||||||
return new BiomeColumn(this, properties.getMinHeight(), properties.getMaxHeight(), x, z, properties.getSeed());
|
return new BiomeColumn(this, properties.getMinHeight(), properties.getMaxHeight(), x, z, properties.getSeed());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user