T
- the type of the objects this class serializespublic interface NBTSerializer<T>
Modifier and Type | Method and Description |
---|---|
NBTBaseTag |
serialize(T item,
SerializationContext context)
Serialize the item into the data store.
|
NBTBaseTag serialize(T item, SerializationContext context)
item
- the object to serializecontext
- the SerializationContext
that complex serialization can be delegated
to. It should also be used to obtain a reference to the appropriate TagFactory