mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
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.
15 lines
433 B
Java
15 lines
433 B
Java
package com.volmit.config;
|
|
|
|
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.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
public @interface Feature {
|
|
String id();
|
|
String name();
|
|
com.volmit.FeatureAttachment.Target[] targets();
|
|
}
|