Uses of Class
alexiil.mc.lib.net.NetIdBase
| Package | Description |
|---|---|
| alexiil.mc.lib.net |
LibNetworkStack's base library.
|
-
Uses of NetIdBase in alexiil.mc.lib.net
Subclasses of NetIdBase in alexiil.mc.lib.net Modifier and Type Class Description classNetIdDataclassNetIdDataK<T>classNetIdSeparateBase class forNetIdDataandNetIdSignal.classNetIdSignalclassNetIdSignalK<T>classNetIdTyped<T>Fields in alexiil.mc.lib.net declared as NetIdBase Modifier and Type Field Description NetIdBaseMessageContext. idMethods in alexiil.mc.lib.net that return NetIdBase Modifier and Type Method Description NetIdBaseIMsgCtx. getNetId()NetIdBaseMessageContext. getNetId()abstract NetIdBaseNetIdBase. toClientOnly()Changes the flags for this packet to indicate that it should only be sent from the server to the client.abstract NetIdBaseNetIdBase. toEitherSide()This clears thetoClientOnly()andtoServerOnly()flag states, and will make sending packets not throw exceptions.abstract NetIdBaseNetIdBase. toServerOnly()Changes the flags for this packet to indicate that it should only be sent from the client to the server.abstract NetIdBaseNetIdBase. withLargeSize()Changes the size flags of this net ID to indicate that it should use three bytes for the packet's total length (including the header).abstract NetIdBaseNetIdBase. withNormalSize()Changes the size flags of this net ID to indicate that it should use two bytes for the packet's total length (including the header).abstract NetIdBaseNetIdBase. withoutBuffering()Changes the flags for this packet to indicate that it should never be buffered by aBufferedConnection.abstract NetIdBaseNetIdBase. withTinySize()Changes the size flags of this net ID to indicate that it should use a single byte for the packet's total length (including the header).Methods in alexiil.mc.lib.net with parameters of type NetIdBase Modifier and Type Method Description static voidInternalMsgUtil. send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload)Sends a packet with it's priority set to it's default priority.static voidInternalMsgUtil. send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload, int priority)Sends a packet.protected abstract voidActiveConnection. sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)protected voidBufferedConnection. sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)Constructors in alexiil.mc.lib.net with parameters of type NetIdBase Constructor Description MessageContext(ActiveConnection connection, NetIdBase id)Read(ActiveConnection connection, NetIdBase id)Write(ActiveConnection connection, NetIdBase id)