add BorderMutator

This commit is contained in:
dfsek
2021-01-12 19:25:01 -07:00
parent 93c33ca455
commit f28759d07a
7 changed files with 97 additions and 22 deletions
@@ -8,7 +8,7 @@ import java.util.Set;
@SuppressWarnings("unchecked")
public class ProbabilityCollection<E> {
private final Set<Object> cont = new HashSet<>();
private final Set<E> cont = new HashSet<>();
private Object[] array = new Object[0];
private int size;
@@ -45,4 +45,8 @@ public class ProbabilityCollection<E> {
public int size() {
return size;
}
public Set<E> getContents() {
return new HashSet<>(cont);
}
}
@@ -1,8 +1,11 @@
package com.dfsek.terra.api.world.biome;
import com.dfsek.terra.api.platform.world.Biome;
import com.dfsek.terra.api.platform.world.World;
import java.util.Set;
/**
* Interface to be implemented by a custom generator's TerraBiome enum.<br>
* Represents a custom biome, and contains methods to retrieve information about each type.
@@ -14,7 +17,7 @@ public interface TerraBiome {
*
* @return TerraBiome - The Vanilla biome.
*/
com.dfsek.terra.api.platform.world.Biome getVanillaBiome();
Biome getVanillaBiome();
/**
* Gets the BiomeTerrain instance used to generate the biome.
@@ -24,4 +27,6 @@ public interface TerraBiome {
Generator getGenerator(World w);
int getColor();
Set<String> getTags();
}