public class NbtBinarySerializer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static NbtBinarySerializer |
DEFAULT
Retrieve a default instance of the NBT binary serializer.
|
| Constructor and Description |
|---|
NbtBinarySerializer() |
| Modifier and Type | Method and Description |
|---|---|
<TType> NbtWrapper<TType> |
deserialize(java.io.DataInput source)
Load an NBT tag from a stream.
|
NbtCompound |
deserializeCompound(java.io.DataInput source)
Load an NBT compound from a stream.
|
<T> NbtList<T> |
deserializeList(java.io.DataInput source)
Load an NBT list from a stream.
|
<TType> void |
serialize(NbtBase<TType> value,
java.io.DataOutput destination)
Write the content of a wrapped NBT tag to a stream.
|
public static final NbtBinarySerializer DEFAULT
public <TType> void serialize(NbtBase<TType> value, java.io.DataOutput destination)
value - - the NBT tag to write.destination - - the destination stream.public <TType> NbtWrapper<TType> deserialize(java.io.DataInput source)
source - - the input stream.public NbtCompound deserializeCompound(java.io.DataInput source)
source - - the input stream.public <T> NbtList<T> deserializeList(java.io.DataInput source)
source - - the input stream.