Interface RtagDeserializer<T>

Type Parameters:
T - Deserializable object type.

public interface RtagDeserializer<T>
An deserializer that converts any Map of objects to assigned object type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Method who be invoked to convert any Map to current object type.
    The unique ID to detect any CompoundTag who can be converted to object type on Rtag.getTagValue(Object) (Object)} operations.
    "Out" means the value inside will be obtained from tag.
    This ID must be the same has "In" ID on RtagSerializer if you want to read the saved object with same type.
  • Method Details

    • getOutID

      String getOutID()
      The unique ID to detect any CompoundTag who can be converted to object type on Rtag.getTagValue(Object) (Object)} operations.
      "Out" means the value inside will be obtained from tag.
      This ID must be the same has "In" ID on RtagSerializer if you want to read the saved object with same type.
      Returns:
      Object type ID.
    • deserialize

      T deserialize(Map<String,Object> compound)
      Method who be invoked to convert any Map to current object type.
      Parameters:
      compound - a compound tag as Map instance.
      Returns:
      A deserialized object.