TerraBiome -> Biome

This commit is contained in:
dfsek
2021-12-04 17:47:41 -07:00
parent 16c80a0976
commit 2ef2b61cc5
45 changed files with 193 additions and 191 deletions

View File

@@ -17,7 +17,7 @@ import com.dfsek.terra.api.util.collection.ProbabilityCollection;
/**
* Represents a custom biome
*/
public interface TerraBiome extends PropertyHolder {
public interface Biome extends PropertyHolder {
/**
* Gets the Vanilla biome to represent the custom biome.

View File

@@ -9,19 +9,19 @@ package com.dfsek.terra.api.world.biome.generation;
import com.dfsek.terra.api.util.vector.Vector2;
import com.dfsek.terra.api.util.vector.Vector3;
import com.dfsek.terra.api.world.biome.TerraBiome;
import com.dfsek.terra.api.world.biome.Biome;
public interface BiomeProvider {
TerraBiome getBiome(int x, int z, long seed);
Biome getBiome(int x, int z, long seed);
default TerraBiome getBiome(Vector2 vector2, long seed) {
default Biome getBiome(Vector2 vector2, long seed) {
return getBiome(vector2.getBlockX(), vector2.getBlockZ(), seed);
}
default TerraBiome getBiome(Vector3 vector3, long seed) {
default Biome getBiome(Vector3 vector3, long seed) {
return getBiome(vector3.getBlockX(), vector3.getBlockZ(), seed);
}
Iterable<TerraBiome> getBiomes();
Iterable<Biome> getBiomes();
}