Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.configuration.serialization.SerializableAs Interface Reference

Public Member Functions

String value ()

Detailed Description

Represents an "alias" that a ConfigurationSerializable may be stored as. If this is not present on a ConfigurationSerializable class, it will use the fully qualified name of the class.

This value will be stored in the configuration so that the configuration deserialization can determine what type it is.

Using this annotation on any other class than a ConfigurationSerializable will have no effect.

See also
ConfigurationSerialization::registerClass(Class, String)

Definition at line 24 of file SerializableAs.java.

Member Function Documentation

String org.bukkit.configuration.serialization.SerializableAs.value ( )

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".

Name to serialize the class as.

Referenced by org.bukkit.configuration.serialization.ConfigurationSerialization.getAlias().

The documentation for this interface was generated from the following file: