public class TypeRemapper<T> extends Object implements ValueReader<T>, ValueWriter<T>
Constructor and Description |
---|
TypeRemapper(Type<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
read(PacketWrapper wrapper)
Reads value from a PacketWrapper
|
void |
write(PacketWrapper output,
T inputValue)
Write a value to a packet
|
public T read(PacketWrapper wrapper) throws Exception
ValueReader
read
in interface ValueReader<T>
wrapper
- The wrapper to read fromException
- Throws exception if it fails to readpublic void write(PacketWrapper output, T inputValue)
ValueWriter
write
in interface ValueWriter<T>
output
- The packet wrapper to write toinputValue
- The value to writeCopyright © 2016–2021. All rights reserved.