注解 SerializableAs
表示
ConfigurationSerializable 可以被存储的 "别名".
如果 ConfigurationSerializable 类上没有此注解, 则使用该类的完全限定名.
该值将存储在配置中, 以便配置反序列化能够确定其类型.
在非 ConfigurationSerializable 类上使用此注解不会产生任何效果.
-
必需元素概要
所需元素
-
元素详细资料
-
value
这是你的类将被存储和检索时使用的名称.此名称必须是唯一的. 我们建议使用如 "MyPluginThing" 这样的名称, 而不是 "Thing".
原文: This is the name your class will be stored and retrieved as.
This name MUST be unique. We recommend using names such as "MyPluginThing" instead of "Thing".
- 返回:
- 序列化时使用的类名.
-