File tree 1 file changed +11
-0
lines changed
src/main/java/com/demonwav/mcdev/annotations
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 48
48
*/
49
49
boolean foldMethod () default false ;
50
50
51
+ /**
52
+ * Whether arbitrary argument types are allowed in the translation argument list, if present. If false, the argument
53
+ * list must only contain instances of {@linkplain String}, {@linkplain Number}, {@linkplain Boolean} and
54
+ * {@code Component}. If true, other argument types are allowed and are converted to strings as if by using
55
+ * {@linkplain String.valueOf}.
56
+ *
57
+ * <p>If this annotation is used on a class within the {@code net.minecraft} package, and the current Minecraft
58
+ * version is less than 23w40a (a snapshot for 1.20.3), then MinecraftDev behaves as if this value is true.
59
+ */
60
+ boolean allowArbitraryArgs () default false ;
61
+
51
62
/**
52
63
* The prefix that will be added to this argument.
53
64
*
You can’t perform that action at this time.
0 commit comments