C# Class Sharpcraft.Networking.Protocol

The Minecraft protocol.
http://wiki.vg/Protocol
Afficher le fichier Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Méthodes publiques

Méthode Description
GetPacket ( ) : Packet

Gets a packet from the server and returns it.

Protocol ( string server, int port ) : System

Initialize a new instance of Protocol.

SendPacket ( Packet packet ) : void

Sends the given packet to the connected Minecraft server.

Method Details

GetPacket() public méthode

Gets a packet from the server and returns it.
public GetPacket ( ) : Packet
Résultat Sharpcraft.Networking.Packets.Packet

Protocol() public méthode

Initialize a new instance of Protocol.
public Protocol ( string server, int port ) : System
server string Server address to connect to.
port int Server port.
Résultat System

SendPacket() public méthode

Sends the given packet to the connected Minecraft server.
public SendPacket ( Packet packet ) : void
packet Sharpcraft.Networking.Packets.Packet The packet to send
Résultat void