mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 06:04:47 +00:00
kill off 0.10 deprecations
This commit is contained in:
6 files changed
-687
No files matched your search
@@ -121,37 +121,6 @@ public @interface Config {
|
||||
@StableAPI.Expose int value();
|
||||
}
|
||||
|
||||
/**
|
||||
* The range of possible values a float config can have.
|
||||
* Notice: float configs are deprecated! Use double configs instead!
|
||||
*/
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.10.0")
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@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;
|
||||
}
|
||||
|
||||
/**
|
||||
* The default value for a float field. Not having a default is deprecated since 0.10, and will be strongly
|
||||
* enforced in 0.11+!
|
||||
* Notice: float configs are deprecated! Use double configs instead!
|
||||
*/
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.10.0")
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
@StableAPI(since = "0.6.0")
|
||||
@interface DefaultFloat {
|
||||
@StableAPI.Expose float value();
|
||||
}
|
||||
|
||||
/**
|
||||
* The range of possible values a double config can have.
|
||||
*/
|
||||
|
||||
@@ -102,21 +102,6 @@ public class ConfigurationManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a configuration class to be loaded. This should be done early on.
|
||||
*
|
||||
* @param configClass The class to register.
|
||||
*/
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.10.0")
|
||||
@StableAPI.Expose
|
||||
public static void registerConfig(Class<?> configClass) throws ConfigException {
|
||||
Share.LOG
|
||||
.warn("A mod is using the deprecated config registration method! The following exception contains the stacktrace.",
|
||||
new Exception());
|
||||
ConfigurationManagerImpl.registerLoadSaveConfig(configClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the configuration into a list of config elements usable in config GUI code.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user