net.kernelpanicsoft.archie.networking¶
Types¶
IPacketContext¶
interface IPacketContext
Provides contextual information available when handling a received network packet.
NetworkChannel¶
class NetworkChannel(id: ResourceLocation)
Manages the registration and sending of strongly-typed, serialization-backed network packets.
PacketHandler¶
typealias PacketHandler<T> = (T, IPacketContext) -> Unit
A function type that handles a received packet of type T along with its IPacketContext.