All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.malilib.api.annotation.Numeric Maven / Gradle / Ivy

There is a newer version: 0.7.398+fe2125a-beta
Show newest version
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