Package alexiil.mc.lib.net
Class NetIdTyped<T>
java.lang.Object
alexiil.mc.lib.net.TreeNetIdBase
alexiil.mc.lib.net.NetIdBase
alexiil.mc.lib.net.NetIdTyped<T>
- Direct Known Subclasses:
NetIdDataK
,NetIdSignalK
public abstract class NetIdTyped<T> extends NetIdBase
-
Field Summary
Fields Modifier and Type Field Description ParentNetIdSingle<T>
parent
Fields inherited from class alexiil.mc.lib.net.TreeNetIdBase
DYNAMIC_LENGTH, fullName, length, name, totalLength
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getPrintableName()
protected abstract void
receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj)
abstract void
send(ActiveConnection connection, T obj)
Sends this net id over the specified connectionMethods inherited from class alexiil.mc.lib.net.NetIdBase
_toClientOnly, _toEitherSide, _toServerOnly, buffered, changeFlag, notBuffered, setBuffered, setLargeSize, setMaximumDropDelay, setNormalSize, setTinySize, toClientOnly, toEitherSide, toServerOnly, withLargeSize, withNormalSize, withoutBuffering, withTinySize
Methods inherited from class alexiil.mc.lib.net.TreeNetIdBase
equals, getRealClassName, hasFixedLength, hashCode, toString
-
Field Details
-
Method Details
-
getPrintableName
protected java.lang.String getPrintableName()- Overrides:
getPrintableName
in classTreeNetIdBase
-
receive
protected abstract void receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj) throws InvalidInputDataException- Throws:
InvalidInputDataException
-
send
Sends this net id over the specified connection
-