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 TypeMethodDescriptiondeserialize(Map<String, Object> compound) Method who be invoked to convert anyMapto current object type.getOutID()The unique ID to detect any CompoundTag who can be converted to object type onRtag.getTagValue(Object)(Object)} operations.
"Out" means the value inside will be obtained from tag.
This ID must be the same has "In" ID onRtagSerializerif 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 onRtag.getTagValue(Object)(Object)} operations.
"Out" means the value inside will be obtained from tag.
This ID must be the same has "In" ID onRtagSerializerif you want to read the saved object with same type.- Returns:
- Object type ID.
-
deserialize
-