Package alexiil.mc.lib.net
Class ParentNetIdCast<Super,Sub extends Super>
java.lang.Object
alexiil.mc.lib.net.TreeNetIdBase
alexiil.mc.lib.net.ParentNetIdBase
alexiil.mc.lib.net.ParentNetIdSingle<T>
alexiil.mc.lib.net.ParentNetIdDuel<Super,Sub>
alexiil.mc.lib.net.ParentNetIdCast<Super,Sub>
-
Field Summary
Fields inherited from class alexiil.mc.lib.net.ParentNetIdDuel
parentFields inherited from class alexiil.mc.lib.net.ParentNetIdSingle
clazzFields inherited from class alexiil.mc.lib.net.TreeNetIdBase
DYNAMIC_LENGTH, fullName, length, name, totalLength -
Constructor Summary
ConstructorsConstructorDescriptionParentNetIdCast(ParentNetIdSingle<Super> parent, String name, Class<Sub> clazz) -
Method Summary
Modifier and TypeMethodDescriptionprotected SuperextractParent(Sub value) protected SubreadContext(NetByteBuf buffer, IMsgReadCtx ctx, Super parentValue) protected voidwriteContext0(NetByteBuf buffer, IMsgWriteCtx ctx, Sub value) Methods inherited from class alexiil.mc.lib.net.ParentNetIdDuel
getPrintableName, readContext, writeContext, writeDynamicContextMethods inherited from class alexiil.mc.lib.net.ParentNetIdSingle
child, extractor, idData, idData, idSignal, readKey, subType, writeKeyMethods inherited from class alexiil.mc.lib.net.TreeNetIdBase
equals, getRealClassName, hasFixedLength, hashCode, toString
-
Constructor Details
-
ParentNetIdCast
-
-
Method Details
-
extractParent
- Specified by:
extractParentin classParentNetIdDuel<Super,Sub extends Super>
-
writeContext0
- Specified by:
writeContext0in classParentNetIdDuel<Super,Sub extends Super>
-
readContext
protected Sub readContext(NetByteBuf buffer, IMsgReadCtx ctx, Super parentValue) throws InvalidInputDataException - Specified by:
readContextin classParentNetIdDuel<Super,Sub extends Super> - Returns:
- The read value.
- Throws:
InvalidInputDataException- if the byte buffer contained invalid data.
-