16 lines
411 B
Java
16 lines
411 B
Java
package us.myles.ViaVersion.api.remapper;
|
|
|
|
import us.myles.ViaVersion.api.PacketWrapper;
|
|
|
|
@FunctionalInterface
|
|
public interface ValueReader<T> {
|
|
/**
|
|
* Reads value from a PacketWrapper
|
|
*
|
|
* @param wrapper The wrapper to read from
|
|
* @return Returns the desired type
|
|
* @throws Exception Throws exception if it fails to read
|
|
*/
|
|
T read(PacketWrapper wrapper) throws Exception;
|
|
}
|