public interface DataSerializer<T>
Modifier and Type | Method and Description |
---|---|
T |
copyValue(T value) |
DataParameter<T> |
createKey(int id) |
T |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf,
T value) |
void write(PacketBuffer buf, T value)
T read(PacketBuffer buf) throws java.io.IOException
java.io.IOException
DataParameter<T> createKey(int id)