Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.configuration.serialization.ConfigurationSerializable Interface Reference
Inheritance diagram for org.bukkit.configuration.serialization.ConfigurationSerializable:
org.bukkit.Color org.bukkit.FireworkEffect org.bukkit.inventory.ItemStack org.bukkit.inventory.meta.ItemMeta org.bukkit.OfflinePlayer org.bukkit.potion.PotionEffect org.bukkit.util.Vector org.bukkit.inventory.meta.BookMeta org.bukkit.inventory.meta.EnchantmentStorageMeta org.bukkit.inventory.meta.FireworkEffectMeta org.bukkit.inventory.meta.FireworkMeta org.bukkit.inventory.meta.LeatherArmorMeta org.bukkit.inventory.meta.MapMeta org.bukkit.inventory.meta.PotionMeta org.bukkit.inventory.meta.SkullMeta org.bukkit.entity.Player org.bukkit.util.BlockVector

Public Member Functions

Map< String, Object > serialize ()
 

Detailed Description

Represents an object that may be serialized.

These objects MUST implement one of the following, in addition to the methods as defined by this interface:

  • A static method "deserialize" that accepts a single Map< String, Object> and returns the class.
  • A static method "valueOf" that accepts a single Map<String, Object> and returns the class.
  • A constructor that accepts a single Map<String, Object>.

In addition to implementing this interface, you must register the class with ConfigurationSerialization#registerClass(Class).

See also
DelegateDeserialization
SerializableAs

Definition at line 24 of file ConfigurationSerializable.java.

Member Function Documentation

Map<String, Object> org.bukkit.configuration.serialization.ConfigurationSerializable.serialize ( )

Creates a Map representation of this class.

This class must provide a method to restore this class, as defined in the ConfigurationSerializable interface javadocs.

Returns
Map containing the current state of this class

Implemented in org.bukkit.util.Vector, org.bukkit.inventory.ItemStack, org.bukkit.FireworkEffect, org.bukkit.Color, and org.bukkit.potion.PotionEffect.


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