Uses of Class
alexiil.mc.lib.net.NetIdBase
-
Uses of NetIdBase in alexiil.mc.lib.net
Modifier and TypeClassDescriptionclass
class
NetIdDataK<T>
class
Base class forNetIdData
andNetIdSignal
.class
class
NetIdSignalK<T>
class
NetIdTyped<T>
Modifier and TypeMethodDescriptionIMsgCtx.getNetId()
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).Modifier and TypeMethodDescriptionstatic 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)
ModifierConstructorDescriptionMessageContext(ActiveConnection connection, NetIdBase id)
Read(ActiveConnection connection, NetIdBase id)
Write(ActiveConnection connection, NetIdBase id)