@FunctionalInterface public interface ValueCreator extends ValueWriter
Modifier and Type | Method and Description |
---|---|
void |
write(PacketWrapper wrapper)
Write new values to a Packet.
|
default void |
write(PacketWrapper writer,
Object inputValue)
Write a value to a packet
|
void write(PacketWrapper wrapper) throws Exception
wrapper
- The packet to write toException
- Throws exception if it fails to write.default void write(PacketWrapper writer, Object inputValue) throws Exception
ValueWriter
write
in interface ValueWriter
writer
- The packet wrapper to write toinputValue
- The value to writeException
- Throws exception if it fails to writeCopyright © 2016–2021. All rights reserved.