Package alexiil.mc.lib.net
Class NetKeyMapper.OfEnum<E extends Enum<E>>
java.lang.Object
alexiil.mc.lib.net.NetKeyMapper<E>
alexiil.mc.lib.net.NetKeyMapper.OfEnum<E>
- 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, E value)
-
Constructor Details
-
OfEnum
-
-
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<E extends Enum<E>>
- Returns:
- null if the key couldn't be found in whatever context this requires.
- Throws:
InvalidInputDataException
-
write
- Specified by:
write
in classNetKeyMapper<E extends Enum<E>>
-