mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 19:22:08 +00:00
Reference.TEMPLATE_POOL: JigsawOverrides.startPool names one of the platform's template pools
Studio completes the pool again from the platform's registered template pools, as the Iris class's native jigsaw pool annotation did. A pack's own jigsaw pools are not valid here: the override replaces the start pool of a vanilla, datapack or modded jigsaw structure.
This commit is contained in:
1 parent
6f52a20b25
commit
6757cbdd0f
3 files changed
+6
-1
No files matched your search
@@ -407,7 +407,7 @@ public final class FloraSettings implements IrisFeature {
|
|||||||
concrete collections such as `ArrayList`, and maps with other keys.
|
concrete collections such as `ArrayList`, and maps with other keys.
|
||||||
- `@Ref(Reference.X)` says what a `String` or `ResourceId` names, also on lists, sets and arrays of
|
- `@Ref(Reference.X)` says what a `String` or `ResourceId` names, also on lists, sets and arrays of
|
||||||
them, so studio offers the right list: `BLOCK`, `ITEM`, `ENTITY`, `BIOME`, `STRUCTURE`, `STRUCTURE_PREFIX`
|
them, so studio offers the right list: `BLOCK`, `ITEM`, `ENTITY`, `BIOME`, `STRUCTURE`, `STRUCTURE_PREFIX`
|
||||||
(a structure or a family prefix such as `minecraft:village`), `STRUCTURE_SET`,
|
(a structure or a family prefix such as `minecraft:village`), `STRUCTURE_SET`, `TEMPLATE_POOL` (a jigsaw template pool),
|
||||||
`POTION_EFFECT` or `ENCHANTMENT` from the server's registries, `NOISE_STYLE` from the host's noise
|
`POTION_EFFECT` or `ENCHANTMENT` from the server's registries, `NOISE_STYLE` from the host's noise
|
||||||
styles, or `PACK_BIOME`, `PACK_REGION`, `PACK_OBJECT`, `PACK_EXPRESSION` or `PACK_IMAGE_MAP` of the pack.
|
styles, or `PACK_BIOME`, `PACK_REGION`, `PACK_OBJECT`, `PACK_EXPRESSION` or `PACK_IMAGE_MAP` of the pack.
|
||||||
The pack kinds fit `String` only, in the form packs use (`desert/dunes`), never `ResourceId`. `BlockState` fields name blocks without it. `@Ref` on any other field fails
|
The pack kinds fit `String` only, in the form packs use (`desert/dunes`), never `ResourceId`. `BlockState` fields name blocks without it. `@Ref` on any other field fails
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ public enum Reference {
|
|||||||
STRUCTURE_PREFIX,
|
STRUCTURE_PREFIX,
|
||||||
/** A platform structure set, such as {@code minecraft:villages}. */
|
/** A platform structure set, such as {@code minecraft:villages}. */
|
||||||
STRUCTURE_SET,
|
STRUCTURE_SET,
|
||||||
|
/** A platform jigsaw template pool, such as {@code minecraft:village/plains/town_centers}. */
|
||||||
|
TEMPLATE_POOL,
|
||||||
/** A potion effect type, such as {@code minecraft:speed}. */
|
/** A potion effect type, such as {@code minecraft:speed}. */
|
||||||
POTION_EFFECT,
|
POTION_EFFECT,
|
||||||
/** An enchantment, such as {@code minecraft:sharpness}. */
|
/** An enchantment, such as {@code minecraft:sharpness}. */
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package com.volmit.vanilla;
|
package com.volmit.vanilla;
|
||||||
|
|
||||||
import com.volmit.config.Desc;
|
import com.volmit.config.Desc;
|
||||||
|
import com.volmit.config.Ref;
|
||||||
|
import com.volmit.config.Reference;
|
||||||
import com.volmit.config.MaxNumber;
|
import com.volmit.config.MaxNumber;
|
||||||
import com.volmit.config.MinNumber;
|
import com.volmit.config.MinNumber;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -50,6 +52,7 @@ public final class JigsawOverrides {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Desc("Optional registered template-pool key used instead of the source jigsaw's start pool. Empty preserves the source pool.")
|
@Desc("Optional registered template-pool key used instead of the source jigsaw's start pool. Empty preserves the source pool.")
|
||||||
|
@Ref(Reference.TEMPLATE_POOL)
|
||||||
private String startPool = "";
|
private String startPool = "";
|
||||||
|
|
||||||
@Desc("Optional start connector name. Empty preserves the source value; the literal NONE removes the source constraint.")
|
@Desc("Optional start connector name. Empty preserves the source value; the literal NONE removes the source constraint.")
|
||||||
|
|||||||
Reference in new issue
Block a user