@FunctionalInterface
public interface ValueReader<T>
Modifier and Type | Method and Description |
---|---|
T |
read(PacketWrapper wrapper)
Reads value from a PacketWrapper
|
T read(PacketWrapper wrapper) throws java.lang.Exception
wrapper
- The wrapper to read fromjava.lang.Exception
- Throws exception if it fails to read