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 class
NetIdData
class
NetIdDataK<T>
class
NetIdSeparate
Base class forNetIdData
andNetIdSignal
.class
NetIdSignal
class
NetIdSignalK<T>
class
NetIdTyped<T>
Fields in alexiil.mc.lib.net declared as NetIdBase Modifier and Type Field Description NetIdBase
MessageContext. id
Methods in alexiil.mc.lib.net that return NetIdBase Modifier and Type Method Description NetIdBase
IMsgCtx. getNetId()
NetIdBase
MessageContext. getNetId()
abstract NetIdBase
NetIdBase. toClientOnly()
Changes the flags for this packet to indicate that it should only be sent from the server to the client.abstract NetIdBase
NetIdBase. toEitherSide()
This clears thetoClientOnly()
andtoServerOnly()
flag states, and will make sending packets not throw exceptions.abstract NetIdBase
NetIdBase. toServerOnly()
Changes the flags for this packet to indicate that it should only be sent from the client to the server.abstract NetIdBase
NetIdBase. 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 NetIdBase
NetIdBase. 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 NetIdBase
NetIdBase. withoutBuffering()
Changes the flags for this packet to indicate that it should never be buffered by aBufferedConnection
.abstract NetIdBase
NetIdBase. 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 void
InternalMsgUtil. 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 void
InternalMsgUtil. send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload, int priority)
Sends a packet.protected abstract void
ActiveConnection. sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)
protected void
BufferedConnection. 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)