|
44 | 44 | /** |
45 | 45 | * The mod id that this configuration is associated with. |
46 | 46 | */ |
47 | | - @StableAPI.Expose |
48 | | - String modid(); |
| 47 | + @StableAPI.Expose String modid(); |
49 | 48 |
|
50 | 49 | /** |
51 | 50 | * Root element category, defaults to "general". You must not specify an empty string. |
52 | 51 | */ |
53 | | - @StableAPI.Expose |
54 | | - String category() default "general"; |
| 52 | + @StableAPI.Expose String category() default "general"; |
55 | 53 |
|
56 | 54 | /** |
57 | 55 | * The lang file key of this configuration. Used in config GUIs. |
|
61 | 59 | @Retention(RetentionPolicy.RUNTIME) |
62 | 60 | @Target({ElementType.FIELD, ElementType.TYPE}) |
63 | 61 | @interface LangKey { |
64 | | - @StableAPI.Expose |
65 | | - String value(); |
| 62 | + @StableAPI.Expose String value(); |
66 | 63 | } |
67 | 64 |
|
68 | 65 | /** |
|
73 | 70 | @Retention(RetentionPolicy.RUNTIME) |
74 | 71 | @Target(ElementType.FIELD) |
75 | 72 | @interface Comment { |
76 | | - @StableAPI.Expose |
77 | | - String[] value(); |
| 73 | + @StableAPI.Expose String[] value(); |
78 | 74 | } |
79 | 75 |
|
80 | 76 | /** |
|
97 | 93 | @Retention(RetentionPolicy.RUNTIME) |
98 | 94 | @Target(ElementType.FIELD) |
99 | 95 | @interface DefaultBoolean { |
100 | | - @StableAPI.Expose |
101 | | - boolean value(); |
| 96 | + @StableAPI.Expose boolean value(); |
102 | 97 | } |
103 | 98 |
|
104 | 99 | /** |
|
109 | 104 | @Retention(RetentionPolicy.RUNTIME) |
110 | 105 | @Target(ElementType.FIELD) |
111 | 106 | @interface RangeInt { |
112 | | - @StableAPI.Expose |
113 | | - int min() default Integer.MIN_VALUE; |
114 | | - @StableAPI.Expose |
115 | | - int max() default Integer.MAX_VALUE; |
| 107 | + @StableAPI.Expose int min() default Integer.MIN_VALUE; |
| 108 | + |
| 109 | + @StableAPI.Expose int max() default Integer.MAX_VALUE; |
116 | 110 | } |
117 | 111 |
|
118 | 112 | /** |
|
124 | 118 | @Retention(RetentionPolicy.RUNTIME) |
125 | 119 | @Target(ElementType.FIELD) |
126 | 120 | @interface DefaultInt { |
127 | | - @StableAPI.Expose |
128 | | - int value(); |
| 121 | + @StableAPI.Expose int value(); |
129 | 122 | } |
130 | 123 |
|
131 | 124 | /** |
|
139 | 132 | @Target(ElementType.FIELD) |
140 | 133 | @StableAPI(since = "0.6.0") |
141 | 134 | @interface RangeFloat { |
142 | | - @StableAPI.Expose |
143 | | - float min() default -Float.MAX_VALUE; |
144 | | - @StableAPI.Expose |
145 | | - float max() default Float.MAX_VALUE; |
| 135 | + @StableAPI.Expose float min() default -Float.MAX_VALUE; |
| 136 | + |
| 137 | + @StableAPI.Expose float max() default Float.MAX_VALUE; |
146 | 138 | } |
147 | 139 |
|
148 | 140 | /** |
|
157 | 149 | @Target(ElementType.FIELD) |
158 | 150 | @StableAPI(since = "0.6.0") |
159 | 151 | @interface DefaultFloat { |
160 | | - @StableAPI.Expose |
161 | | - float value(); |
| 152 | + @StableAPI.Expose float value(); |
162 | 153 | } |
163 | 154 |
|
164 | 155 | /** |
|
169 | 160 | @Retention(RetentionPolicy.RUNTIME) |
170 | 161 | @Target(ElementType.FIELD) |
171 | 162 | @interface RangeDouble { |
172 | | - @StableAPI.Expose |
173 | | - double min() default -Double.MAX_VALUE; |
174 | | - @StableAPI.Expose |
175 | | - double max() default Double.MAX_VALUE; |
| 163 | + @StableAPI.Expose double min() default -Double.MAX_VALUE; |
| 164 | + |
| 165 | + @StableAPI.Expose double max() default Double.MAX_VALUE; |
176 | 166 | } |
177 | 167 |
|
178 | 168 | /** |
|
184 | 174 | @Retention(RetentionPolicy.RUNTIME) |
185 | 175 | @Target(ElementType.FIELD) |
186 | 176 | @interface DefaultDouble { |
187 | | - @StableAPI.Expose |
188 | | - double value(); |
| 177 | + @StableAPI.Expose double value(); |
189 | 178 | } |
190 | 179 |
|
191 | 180 | /** |
|
197 | 186 | @Retention(RetentionPolicy.RUNTIME) |
198 | 187 | @Target(ElementType.FIELD) |
199 | 188 | @interface DefaultString { |
200 | | - @StableAPI.Expose |
201 | | - String value(); |
| 189 | + @StableAPI.Expose String value(); |
202 | 190 | } |
203 | 191 |
|
204 | 192 |
|
|
215 | 203 | @Retention(RetentionPolicy.RUNTIME) |
216 | 204 | @Target(ElementType.FIELD) |
217 | 205 | @interface StringMaxLength { |
218 | | - @StableAPI.Expose |
219 | | - int value(); |
| 206 | + @StableAPI.Expose int value(); |
220 | 207 | } |
221 | 208 |
|
222 | 209 | /** |
|
227 | 214 | @Retention(RetentionPolicy.RUNTIME) |
228 | 215 | @Target(ElementType.FIELD) |
229 | 216 | @interface Pattern { |
230 | | - @StableAPI.Expose |
231 | | - String value(); |
| 217 | + @StableAPI.Expose String value(); |
232 | 218 | } |
233 | 219 |
|
234 | 220 | /** |
|
240 | 226 | @Retention(RetentionPolicy.RUNTIME) |
241 | 227 | @Target(ElementType.FIELD) |
242 | 228 | @interface DefaultEnum { |
243 | | - @StableAPI.Expose |
244 | | - String value(); |
| 229 | + @StableAPI.Expose String value(); |
245 | 230 | } |
246 | 231 |
|
247 | 232 | /** |
|
253 | 238 | @Retention(RetentionPolicy.RUNTIME) |
254 | 239 | @Target(ElementType.FIELD) |
255 | 240 | @interface DefaultStringList { |
256 | | - @StableAPI.Expose |
257 | | - String[] value(); |
| 241 | + @StableAPI.Expose String[] value(); |
258 | 242 | } |
259 | 243 |
|
260 | 244 | /** |
|
266 | 250 | @Retention(RetentionPolicy.RUNTIME) |
267 | 251 | @Target(ElementType.FIELD) |
268 | 252 | @interface DefaultDoubleList { |
269 | | - @StableAPI.Expose |
270 | | - double[] value(); |
| 253 | + @StableAPI.Expose double[] value(); |
271 | 254 | } |
272 | 255 |
|
273 | 256 | /** |
|
279 | 262 | @Retention(RetentionPolicy.RUNTIME) |
280 | 263 | @Target(ElementType.FIELD) |
281 | 264 | @interface DefaultIntList { |
282 | | - @StableAPI.Expose |
283 | | - int[] value(); |
| 265 | + @StableAPI.Expose int[] value(); |
284 | 266 | } |
285 | 267 |
|
286 | 268 | /** |
|
292 | 274 | @Retention(RetentionPolicy.RUNTIME) |
293 | 275 | @Target(ElementType.FIELD) |
294 | 276 | @interface DefaultBooleanList { |
295 | | - @StableAPI.Expose |
296 | | - boolean[] value(); |
| 277 | + @StableAPI.Expose boolean[] value(); |
297 | 278 | } |
298 | 279 |
|
299 | 280 | /** |
|
319 | 300 | @Retention(RetentionPolicy.RUNTIME) |
320 | 301 | @Target(ElementType.FIELD) |
321 | 302 | @interface ListMaxLength { |
322 | | - @StableAPI.Expose |
323 | | - int value(); |
| 303 | + @StableAPI.Expose int value(); |
324 | 304 | } |
325 | 305 |
|
326 | 306 |
|
|
332 | 312 | @Retention(RetentionPolicy.RUNTIME) |
333 | 313 | @Target(ElementType.FIELD) |
334 | 314 | @interface Name { |
335 | | - @StableAPI.Expose |
336 | | - String value(); |
| 315 | + @StableAPI.Expose String value(); |
337 | 316 | } |
338 | 317 |
|
339 | 318 | /** |
|
0 commit comments