code cleanup

This commit is contained in:
FalsePattern committed 2022-08-17 20:10:51 +02:00
1 parent c440524bdd
commit de6a7e5080
22 files changed
+86 -108

No files matched your search

@@ -44,14 +44,12 @@ public @interface Config {
/**
* The mod id that this configuration is associated with.
*/
@StableAPI.Expose
String modid();
@StableAPI.Expose String modid();
/**
* Root element category, defaults to "general". You must not specify an empty string.
*/
@StableAPI.Expose
String category() default "general";
@StableAPI.Expose String category() default "general";
/**
* The lang file key of this configuration. Used in config GUIs.
@@ -61,8 +59,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
@interface LangKey {
@StableAPI.Expose
String value();
@StableAPI.Expose String value();
}
/**
@@ -73,8 +70,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface Comment {
@StableAPI.Expose
String[] value();
@StableAPI.Expose String[] value();
}
/**
@@ -97,8 +93,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultBoolean {
@StableAPI.Expose
boolean value();
@StableAPI.Expose boolean value();
}
/**
@@ -109,10 +104,9 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface RangeInt {
@StableAPI.Expose
int min() default Integer.MIN_VALUE;
@StableAPI.Expose
int max() default Integer.MAX_VALUE;
@StableAPI.Expose int min() default Integer.MIN_VALUE;
@StableAPI.Expose int max() default Integer.MAX_VALUE;
}
/**
@@ -124,8 +118,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultInt {
@StableAPI.Expose
int value();
@StableAPI.Expose int value();
}
/**
@@ -139,10 +132,9 @@ public @interface Config {
@Target(ElementType.FIELD)
@StableAPI(since = "0.6.0")
@interface RangeFloat {
@StableAPI.Expose
float min() default -Float.MAX_VALUE;
@StableAPI.Expose
float max() default Float.MAX_VALUE;
@StableAPI.Expose float min() default -Float.MAX_VALUE;
@StableAPI.Expose float max() default Float.MAX_VALUE;
}
/**
@@ -157,8 +149,7 @@ public @interface Config {
@Target(ElementType.FIELD)
@StableAPI(since = "0.6.0")
@interface DefaultFloat {
@StableAPI.Expose
float value();
@StableAPI.Expose float value();
}
/**
@@ -169,10 +160,9 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface RangeDouble {
@StableAPI.Expose
double min() default -Double.MAX_VALUE;
@StableAPI.Expose
double max() default Double.MAX_VALUE;
@StableAPI.Expose double min() default -Double.MAX_VALUE;
@StableAPI.Expose double max() default Double.MAX_VALUE;
}
/**
@@ -184,8 +174,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultDouble {
@StableAPI.Expose
double value();
@StableAPI.Expose double value();
}
/**
@@ -197,8 +186,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultString {
@StableAPI.Expose
String value();
@StableAPI.Expose String value();
}
@@ -215,8 +203,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface StringMaxLength {
@StableAPI.Expose
int value();
@StableAPI.Expose int value();
}
/**
@@ -227,8 +214,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface Pattern {
@StableAPI.Expose
String value();
@StableAPI.Expose String value();
}
/**
@@ -240,8 +226,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultEnum {
@StableAPI.Expose
String value();
@StableAPI.Expose String value();
}
/**
@@ -253,8 +238,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultStringList {
@StableAPI.Expose
String[] value();
@StableAPI.Expose String[] value();
}
/**
@@ -266,8 +250,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultDoubleList {
@StableAPI.Expose
double[] value();
@StableAPI.Expose double[] value();
}
/**
@@ -279,8 +262,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultIntList {
@StableAPI.Expose
int[] value();
@StableAPI.Expose int[] value();
}
/**
@@ -292,8 +274,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface DefaultBooleanList {
@StableAPI.Expose
boolean[] value();
@StableAPI.Expose boolean[] value();
}
/**
@@ -319,8 +300,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface ListMaxLength {
@StableAPI.Expose
int value();
@StableAPI.Expose int value();
}
@@ -332,8 +312,7 @@ public @interface Config {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface Name {
@StableAPI.Expose
String value();
@StableAPI.Expose String value();
}
/**