net.kernelpanicsoft.archie.networking¶
Types¶
ArchieNetworkChannel¶
object ArchieNetworkChannel : NetworkChannel
Archie's own NetworkChannel, used for its internal packets (Compose container menu slot syncing, block entity/item state syncing). Not intended for use by downstream mods; create your own NetworkChannel instance instead.
IPacketContext¶
interface IPacketContext
Provides contextual information available when handling a received network packet.
NetworkChannel¶
open 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.