Let built-in modules describe the classes Iris's own classes hold (registerHeldType)

This commit is contained in:
piexel committed 2026-10-09 20:46:24 +02:00
1 parent 46676fd99b
commit 668d46bd91
12 files changed
+131 -3

No files matched your search

+3
View File
@@ -413,6 +413,9 @@ public final class FloraSettings implements IrisFeature {
that no stage names, such as ones read only through `FeatureSettings.at(...)`, are registered with
`registry.registerSettings(WindSettings.class)` in `register`. Their feature id follows the module
id like any other, and once registered, other modules may name them in `when(...)`.
- A class of a built-in module that Iris's own classes hold, such as the clamp field of an object placement, is
registered with `registry.registerHeldType(Clamp.class)`, so studio describes it from the class (as an
`ObjectType`, with no feature). Only built-in modules may; a pack module's class can never be a field of an Iris class.
A load error names the field, the settings and the module: