blob: eddb490c1266672234c713ce4927bc26a17af1aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package cc.polyfrost.oneconfig.config.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Excludes fields from being serialized or deserialized by OneConfig's Config and HUD
* system.
*
* This can be used interchangeably with the transient modifier built into Java.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface Exclude {
ExcludeType type() default ExcludeType.ALL;
enum ExcludeType {
ALL,
CONFIG,
HUD
}
}
|