2022-08-26 20:51:00 +02:00
|
|
|
package io.gitlab.jfronny.libjf.config.api.v1;
|
2021-05-15 15:34:19 +02:00
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
2022-08-27 20:17:13 +02:00
|
|
|
/**
|
|
|
|
* An annotation for fields in configs or categories which are to be shown
|
|
|
|
*/
|
2021-05-15 15:34:19 +02:00
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Target(ElementType.FIELD)
|
|
|
|
public @interface Entry {
|
|
|
|
int width() default 100;
|
2022-01-08 21:27:13 +01:00
|
|
|
double min() default Double.NEGATIVE_INFINITY;
|
|
|
|
double max() default Double.POSITIVE_INFINITY;
|
2021-05-15 15:34:19 +02:00
|
|
|
}
|