C# Class Sharpcraft.Networking.Protocol

The Minecraft protocol.
http://wiki.vg/Protocol
Exibir arquivo Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Methods

Method 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 method

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

Protocol() public method

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

SendPacket() public method

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