diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-07-25 11:58:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 11:58:48 +0100 |
commit | 2159b8d6cc7e0de418062fecb8e57244184e8820 (patch) | |
tree | cb3928cc4f027138319b5a7e16a691785c88d703 /src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java | |
parent | 580fd1d5c4ec5625c813f6d593928a401a500869 (diff) | |
download | OneConfig-2159b8d6cc7e0de418062fecb8e57244184e8820.tar.gz OneConfig-2159b8d6cc7e0de418062fecb8e57244184e8820.tar.bz2 OneConfig-2159b8d6cc7e0de418062fecb8e57244184e8820.zip |
additional config migrators (#64)
* json migrator
* *coughs*
* casting issues fix
* cfg implementation and a couple fixes
* reformat
* cast fix + javadoc
* make the json migrator useful, double parsing, separate annotations
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java index d9db17e..5e14f9c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java @@ -5,6 +5,12 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +/** + * <pre style="font-size: 12px">{@code public @interface VigilanceName}</pre> + * This interface is used to specify a previous name for an element.<br> + * For example, if you changed the name of a variable when you migrated/updated your mod to use OneConfig, + * you can use this annotation to specify the previous name so that the Migrator can grab it. + */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface VigilanceName { |