Package alexiil.mc.lib.net
Class NetKeyMapper.ToString<T>
java.lang.Object
alexiil.mc.lib.net.NetKeyMapper<T>
alexiil.mc.lib.net.NetKeyMapper.ToString<T>
- Enclosing class:
- NetKeyMapper<T>
public static class NetKeyMapper.ToString<T> extends NetKeyMapper<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.net.NetKeyMapper
NetKeyMapper.OfEnum<E extends java.lang.Enum<E>>, NetKeyMapper.ToString<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description T
read(NetByteBuf buffer, IMsgReadCtx ctx)
Reads the value for the key from the buffer, optionally using the parent keys.void
write(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
-
Constructor Details
-
Method Details
-
read
Description copied from class:NetKeyMapper
Reads the value for the key from the buffer, optionally using the parent keys.Note that any of the parent keys might be null if they failed to read!
- Specified by:
read
in classNetKeyMapper<T>
- Returns:
- null if the key couldn't be found in whatever context this requires.
- Throws:
InvalidInputDataException
-
write
- Specified by:
write
in classNetKeyMapper<T>
-