top.hendrixshen.magiclib.malilib.api.annotation.Numeric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-1_14_4 Show documentation
Show all versions of magiclib-1_14_4 Show documentation
To beat magic with magic :(
package top.hendrixshen.magiclib.malilib.api.annotation;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Extra settings for configuration.
* This annotation is only valid when decorating {@link fi.dy.masa.malilib.config.options.ConfigInteger}
* instances and {@link fi.dy.masa.malilib.config.options.ConfigDouble} instances.
*/
@Environment(EnvType.CLIENT)
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Numeric {
/**
* Max value.
*
* @return Maximum value for configuration.
*/
double maxValue();
/**
* Min value.
*
* @return Minimum value for configuration.
*/
double minValue();
/**
* Whether to use a slider
*
* @return True if slider is used.
*/
boolean useSlider() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy