mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Require object feature ids, mantle keys and settings ids to be the owning module's id or below it
Object feature ids and mantle keys a module registers must now equal its module id or start with it and '/', the rule stage ids already follow, instead of only sharing its namespace. A settings type named in when(...) needs a feature id that at least one module naming it owns in the same sense, so another module may still condition on it, as moss can on iris:snow. ModuleInfo.ownsId states the rule; stageIdPrefix becomes idPrefix since it now prefixes more than stages. Errors name the module and its origin and suggest an owned id.
This commit is contained in:
1 parent
77e4ab4710
commit
d5aad57ad9
10 files changed
+113
-61
No files matched your search
@@ -8,7 +8,7 @@ import com.volmit.object.ObjectGeneratorFactory;
|
||||
/** Host implementation collects non-stage registrations before loading pack configuration.
|
||||
* Feature IDs must be unique. JSON fields must be unique per attachment target, including the
|
||||
* settings types stages name in {@code when(...)}. Feature IDs and mantle keys a module registers
|
||||
* use the namespace of its module id.
|
||||
* are its module id or start with it and {@code /}, such as {@code iris:snow} or {@code iris:snow/depth}.
|
||||
*/
|
||||
public interface FeatureRegistry {
|
||||
/** Registers a layer before pack loading. Null arguments throw NullPointerException;
|
||||
|
||||
Reference in new issue
Block a user