程序包 org.bukkit
注解 MinecraftExperimental
@Documented
@Retention(CLASS)
@Target({TYPE,ANNOTATION_TYPE,METHOD,CONSTRUCTOR,FIELD,PACKAGE})
@Internal
public @interface MinecraftExperimental
表示被注解的元素(类、方法、字段等)属于
Minecraft 实验性功能,
并可能被 Mojang 更改。
注意:标记有此注解的元素需要在服务器上启用数据包或其他非标准功能才能生效。
-
嵌套类概要
嵌套类 -
必需元素概要
所需元素
-
元素详细资料
-
value
获取被注解对象有效所需启用的功能。虽然此值在 Bukkit 中未被使用,但它是一个便利值,用于帮助定位相关的被注解元素, 以便在 Minecraft 不再将其视为实验性功能时进行移除。有关在插件中的使用信息,请参阅
MinecraftExperimental.Requires。- 返回:
- 所需的功能标志。
原文:
Get the feature that must be enabled for the annotated object to be valid.
While this value is not used anywhere in Bukkit, it is a convenience value to assist in locating relevant annotated elements for removal once no longer deemed an experimental feature by Minecraft. See
MinecraftExperimental.Requiresfor information about use in plugins.
-