Package alexiil.mc.lib.net
Class DynamicNetId<T>
java.lang.Object
alexiil.mc.lib.net.TreeNetIdBase
alexiil.mc.lib.net.ParentNetIdBase
alexiil.mc.lib.net.ParentNetIdSingle<T>
alexiil.mc.lib.net.DynamicNetId<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from class alexiil.mc.lib.net.ParentNetIdSingle
clazz
Fields inherited from class alexiil.mc.lib.net.TreeNetIdBase
DYNAMIC_LENGTH, fullName, length, name, parent, totalLength
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected T
readContext
(NetByteBuf buffer, IMsgReadCtx ctx) protected void
writeContext
(NetByteBuf buffer, IMsgWriteCtx ctx, T value) protected void
writeDynamicContext
(CheckingNetByteBuf buffer, IMsgWriteCtx ctx, T value, List<TreeNetIdBase> resolvedPath) Methods inherited from class alexiil.mc.lib.net.ParentNetIdSingle
child, extractor, getPrintableName, idData, idData, idSignal, readKey, subType, writeKey
Methods inherited from class alexiil.mc.lib.net.TreeNetIdBase
equals, getRealClassName, hasFixedLength, hashCode, toString
-
Constructor Details
-
DynamicNetId
-
-
Method Details
-
readContext
- Specified by:
readContext
in classParentNetIdSingle<T>
- Returns:
- The read value, or null if the parent couldn't be read.
- Throws:
InvalidInputDataException
- if the byte buffer contained invalid data.
-
writeContext
- Specified by:
writeContext
in classParentNetIdSingle<T>
-
writeDynamicContext
protected void writeDynamicContext(CheckingNetByteBuf buffer, IMsgWriteCtx ctx, T value, List<TreeNetIdBase> resolvedPath) - Overrides:
writeDynamicContext
in classParentNetIdSingle<T>
-