Package net pack network connection for Minecraft.
const MaxRCONPackageSize = 4096
Conn is a minecraft Connection
DialMC create a Minecraft connection
DialMCTimeout acts like DialMC but takes a timeout.
WrapConn warp an net.Conn to MC-Conn Helps you modify the connection process (eg. using DialContext).
Close close the connection
ReadPacket read a Packet from Conn.
SetCipher load the decode/encode stream to this Conn
SetThreshold set threshold to Conn. The data packet with length longer then threshold will be compress when sending.
WritePacket write a Packet to Conn.
A Listener is a minecraft Listener
ListenMC listen as TCP but Accept a mc Conn
Accept a minecraft Conn