Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type McProto ¶
type McProto struct { Host string Port uint16 Name string ProtocolVersion int32 // contains filtered or unexported fields }
func (*McProto) GetCompressionTreshold ¶
func (*McProto) Initialize ¶
Initializes the connection to the server by sending the handshake packet and the login packet
Server Host, Port and Username are defined in the McProto object
func (*McProto) ReceivePacket ¶
func (mc *McProto) ReceivePacket() (packets.MinecraftPacket, error)
func (*McProto) WritePacket ¶
type PacketOp ¶
type PacketOp interface { SerializeData(inter interface{}) error Serialize(compressionTreshold int32) ([]byte, error) }
PacketOp defines the standard methods that a struct should have in order to be serializable by the library
You can actually create your own methods as long as they respect this standard
Click to show internal directories.
Click to hide internal directories.