Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Commit 4f15a26

Browse files
committed
Update NMS
1 parent 91afd61 commit 4f15a26

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package team.unstudio.udpl.core.nms.asm;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.ElementType.METHOD;
5+
import static java.lang.annotation.ElementType.TYPE;
6+
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7+
8+
import java.lang.annotation.Retention;
9+
import java.lang.annotation.Target;
10+
11+
import team.unstudio.udpl.util.BukkitVersion;
12+
13+
public @interface Version {
14+
15+
@Retention(RUNTIME)
16+
@Target({ TYPE, FIELD, METHOD })
17+
public static @interface Only{
18+
BukkitVersion[] value();
19+
}
20+
21+
@Retention(RUNTIME)
22+
@Target({ TYPE, FIELD, METHOD })
23+
public static @interface Above{
24+
BukkitVersion value();
25+
}
26+
27+
@Retention(RUNTIME)
28+
@Target({ TYPE, FIELD, METHOD })
29+
public static @interface Below{
30+
BukkitVersion value();
31+
}
32+
33+
@Retention(RUNTIME)
34+
@Target({ TYPE, FIELD, METHOD })
35+
public static @interface Source{
36+
BukkitVersion value();
37+
}
38+
}

0 commit comments

Comments
 (0)