Reference.PACK_STRUCTURE: a jigsaw structure of the pack

Lets a settings class name the pack's structures by key without naming the
host's structure class, like PACK_BIOME and PACK_OBJECT.
This commit is contained in:
piexel committed 2026-10-15 13:03:42 +02:00
1 parent f44b31edd0
commit e3e8db3329
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -465,7 +465,7 @@ public final class FloraSettings implements IrisFeature {
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`, `TEMPLATE_POOL` (a jigsaw template pool),
`POTION_EFFECT`, `ENCHANTMENT`, `LOOT_TABLE` or `SPECIAL_ENTITY` (a mob of another plugin) 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`, `PACK_IMAGE_MAP` or `PACK_STRUCTURE` (a jigsaw structure) 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 load.
- `@ResourceRef(Keep.class)` says that a `String`, or a list, set or array of them, names a resource of the