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>
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.net.NetKeyMapper
NetKeyMapper.OfEnum<E extends Enum<E>>, NetKeyMapper.ToString<T>
-
Field Summary
Fields inherited from class alexiil.mc.lib.net.NetKeyMapper
clazz, length, LENGTH_DYNAMIC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(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
-
ToString
-
-
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>
-