C# 클래스 Sharpcraft.Networking.Protocol

The Minecraft protocol.
http://wiki.vg/Protocol
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GetPacket() 공개 메소드

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

Protocol() 공개 메소드

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

SendPacket() 공개 메소드

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