Package alexiil.mc.lib.net.impl
LibNetworkStack's minecraft-specific library.
First off: this is based fully on the concepts documented in the main library
, but with a
few things different:
- Every
packet
must be haveMcNetworkStack.ROOT
as it's root parent network ID - otherwise it will crash when you try to send it - All network connections are
buffered
until the end of every tick - so you cannot expect them to arrive before normal minecraft packets, unless you explicitly callNetIdBase.notBuffered()
on the network ID.
-
Interface Summary Interface Description BlockEntityInitialData This should be implemented byBlockEntity
s that wish to send their own initial data packet to players individually, rather than usingBlockEntity.toInitialChunkDataTag()
orBlockEntity.toUpdatePacket()
.IPacketCustomId<T extends net.minecraft.network.listener.PacketListener> -
Class Summary Class Description ActiveClientConnection ActiveMinecraftConnection A connection to the other side - this is either anActiveClientConnection
or anActiveServerConnection
.ActiveServerConnection A connection on the server side to a specificServerPlayerEntity
.CompactDataPacketToClient CompactDataPacketToServer CoreMinecraftNetUtil McNetworkStack Holder for everything related to a normal minecraft connection.