@FunctionalInterface
public interface ValueWriter<T>
Modifier and Type | Method and Description |
---|---|
void |
write(PacketWrapper wrapper,
T inputValue)
Write a value to a packet
|
void write(PacketWrapper wrapper, T inputValue) throws java.lang.Exception
wrapper
- The packet wrapper to write toinputValue
- The value to writejava.lang.Exception
- Throws exception if it fails to write