Remove feature aliases, the one-option shorthand and reserved host fields

A setting has one JSON key, its feature id, and one shape, its settings object.
Aliases were the only reason for reserved host fields (ids contain ':', host
fields never do), so ModuleHost.reservingFields goes too.
This commit is contained in:
piexel committed 2026-10-09 20:19:08 +02:00
1 parent 99a914633d
commit f6c078aade
26 files changed
+112 -305

No files matched your search

@@ -4,16 +4,11 @@ import java.lang.annotation.*;
/** Identity and JSON attachment for an IrisFeature configuration class. Packs write the settings under
* their feature id, such as {@code "example:moss": {...}}, at each of the targets.
*
* <p>{@code alias} is an optional short JSON key that only modules shipping with the host may set, so
* existing pack JSON such as {@code "stilt": {...}} keeps loading. A pack module that sets one fails
* the load. An alias contains no ':', so it never equals a feature id.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Feature {
String id();
String name();
String alias() default "";
com.volmit.FeatureAttachment.Target[] targets();
}