iris:deposit is written under its feature id only; drop the deposits alias

This commit is contained in:
piexel committed 2026-10-09 20:21:14 +02:00
1 parent c895fe117f
commit 04ce02c042
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ built-ins still reach the same store through `IrisChunk.state(...)` / `engine.ge
Settings move off Iris's classes one feature at a time. `iris:deposit` is the first whose settings are IrisApi types
only: `DepositSettings` holds `DepositGenerator`s (blocks as `BlockSpec`, its enums beside it in
`art.arcane.iris.builtin.deposit`), and packs write the same `deposits` JSON as before. What needs Iris (resolving the
`art.arcane.iris.builtin.deposit`), and packs write `"iris:deposit": {"generators": [...]}` (the old `"deposits": [...]` is converted by the pack migration script). What needs Iris (resolving the
palette, ore checks, clump shapes per world seed) lives in the module's own code, `ResolvedDeposit`.
Every built-in stage is a full port: the module owns its logic and per-engine state, and the mantle stages
@@ -29,7 +29,7 @@ import java.util.Collections;
import java.util.List;
/**
* One kind of deposit a dimension, region or biome generates, as packs write it in {@code "deposits": [...]} or under
* One kind of deposit a dimension, region or biome generates, as packs write it in the {@code generators} of {@code "iris:deposit"} 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 "deposits": [...]}. Levels stack:
* The deposits one dimension, region or biome declares, written as {@code "iris:deposit": {"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", alias = "deposits", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
@Feature(id = "iris:deposit", name = "Deposits", 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();