mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Merge branch 'wave3b/4'
# Conflicts: # README.md # src/main/java/com/volmit/world/TerrainSampler.java
This commit is contained in:
commit
58ed81032c
16 files changed
+180
-7
No files matched your search
@@ -5,6 +5,7 @@ import com.volmit.IrisFeature;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/** Invocation-scoped lookup of the settings that apply at one world column.
|
||||
*
|
||||
@@ -22,6 +23,15 @@ import java.util.Objects;
|
||||
public interface FeatureSettings {
|
||||
<F extends IrisFeature> List<Entry<F>> at(Class<F> featureType, int worldX, int worldZ);
|
||||
|
||||
/** The settings {@code biome} declares itself, whichever column it is found at: for a biome that is not a column's
|
||||
* surface biome, such as the cave biome of {@link com.volmit.world.BiomeSample#caveBiome()}, which is no level of
|
||||
* {@link #at}. {@code biome} is an id as a {@code BiomeSample} gives it. Empty when the biome declares none, or the
|
||||
* host knows no such biome.
|
||||
*/
|
||||
default <F extends IrisFeature> Optional<F> declaredBy(ResourceId biome, Class<F> featureType) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
/** One level's declaration of the settings.
|
||||
*
|
||||
* @param level where the settings are declared: the dimension, a region, a biome or the placement
|
||||
|
||||
Reference in new issue
Block a user