Class MetadataLoader

java.lang.Object
com.palmergames.bukkit.towny.object.metadata.MetadataLoader

public class MetadataLoader extends Object
  • Method Details

    • getInstance

      public static MetadataLoader getInstance()
    • registerDeserializer

      public boolean registerDeserializer(String typeID, DataFieldDeserializer<?> deserializer)
      Register a deserializer for a specific custom CustomDataField class.
      Parameters:
      typeID - type id of the CustomDataField class to deserialize.
      deserializer - actual deserializer for the class.
      Returns:
      whether or not the deserializer was registered.
    • deserializeMetadata

      public void deserializeMetadata(TownyObject object, String serializedMetadata)
    • scheduleDeserialization

      public void scheduleDeserialization()