mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 02:04:51 +00:00
Built-in settings declare their JSON keys: deposits, decorators, importedStructures
DepositSettings and DecorantSettings hold their one option's list as the value of the key (root), StructureSettings is the object under importedStructures. The feature ids stay the modules' identity. README names the keys.
This commit is contained in:
1 parent
4203c07c29
commit
13aa3ccc68
8 files changed
+18
-13
No files matched your search
@@ -30,7 +30,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* One kind of deposit a dimension, region or biome generates, as packs write it in the {@code generators} of {@code "iris:deposit"} or under
|
||||
* One kind of deposit a dimension, region or biome generates, as packs write it in the {@code "deposits"} list or under
|
||||
* {@code snippet/deposit/}: how many clumps of which blocks, how large, at which heights and in which biomes. A value
|
||||
* of IrisApi types only; the deposit module builds the clumps and resolves the blocks.
|
||||
*/
|
||||
|
||||
@@ -26,12 +26,12 @@ import com.volmit.config.Feature;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* The deposits one dimension, region or biome declares, written as {@code "iris:deposit": {"generators": [...]}}. Levels stack:
|
||||
* The deposits one dimension, region or biome declares, written as {@code "deposits": [...]}, the list of generators. Levels stack:
|
||||
* a chunk gets the deposits of its dimension, its centre column's region and that column's biome. IrisApi types only,
|
||||
* like {@link DepositGenerator}.
|
||||
*/
|
||||
@Desc("Ores and other deposits generated in every chunk where this applies")
|
||||
@Feature(id = "iris:deposit", name = "Deposits", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
|
||||
@Feature(id = "iris:deposit", name = "Deposits", key = "deposits", root = "generators", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
|
||||
public final class DepositSettings implements IrisFeature {
|
||||
@Desc("Define deposit generators that this applies to chunks")
|
||||
private List<DepositGenerator> generators = List.of();
|
||||
|
||||
Reference in new issue
Block a user