mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Added @Ignore to the annotation based Config system. (#4696)
This commit is contained in:
1 parent
4ae6e4a295
commit
ca7a5eadc0
2 files changed
+7
No files matched your search
@@ -79,6 +79,11 @@ public @interface Config
|
||||
String[] value();
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
@interface Ignore
|
||||
{}
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
@interface RangeInt
|
||||
|
||||
@@ -222,6 +222,8 @@ public class ConfigManager
|
||||
continue;
|
||||
if (Modifier.isStatic(f.getModifiers()) != (instance == null))
|
||||
continue;
|
||||
if (f.isAnnotationPresent(Config.Ignore.class))
|
||||
continue;
|
||||
|
||||
String comment = null;
|
||||
Comment ca = f.getAnnotation(Comment.class);
|
||||
|
||||
Reference in new issue
Block a user