C# Class MineViewer.SMPInterface

Show file Open project: dzamkov/MineViewer Class Usage Examples

Public Properties

Property Type Description
CaseUsername string
Chunks MinecraftLevel.Chunk>.Dictionary
ChunksNeeded bool>.Dictionary
Connected bool
Connection System.Net.Sockets.TcpClient
Handler PacketHandler
IsSMP bool
Kicked bool
LastError string
PacketTypeLengths int[]
PlayerX double
PlayerY double
PlayerZ double
Reader System.IO.BinaryReader
SessionHash string
SessionID string
SrvPassword string
TransChunks MinecraftLevel.Chunk>.Dictionary
Username string

Public Methods

Method Description
AuthConnect ( string _Username, string _ServerID ) : bool
Connect ( string IP, string _Username, string _Password, string _SrvPassword ) : bool

Connect to a server with the given IPEndPoint

Debug ( string s ) : void
Disconnect ( ) : void
GetChunk ( Cubia pos, bool trans ) : MinecraftLevel.Chunk
Subscribe ( PacketTypes packet, System.Action onCall ) : void
SwapByteOrder ( double val ) : double
SwapByteOrder ( int val ) : int
SwapByteOrder ( short val ) : short

Private Methods

Method Description
Auth ( string _Username, string _Password ) : bool

Authecate the user to join

LoadPackets ( ) : void
RespondWorker ( ) : void

Respond to the incomming stuff.

Method Details

AuthConnect() public static method

public static AuthConnect ( string _Username, string _ServerID ) : bool
_Username string
_ServerID string
return bool

Connect() public static method

Connect to a server with the given IPEndPoint
public static Connect ( string IP, string _Username, string _Password, string _SrvPassword ) : bool
IP string
_Username string
_Password string
_SrvPassword string
return bool

Debug() public static method

public static Debug ( string s ) : void
s string
return void

Disconnect() public static method

public static Disconnect ( ) : void
return void

GetChunk() public static method

public static GetChunk ( Cubia pos, bool trans ) : MinecraftLevel.Chunk
pos Cubia
trans bool
return MinecraftLevel.Chunk

Subscribe() public static method

public static Subscribe ( PacketTypes packet, System.Action onCall ) : void
packet PacketTypes
onCall System.Action
return void

SwapByteOrder() public static method

public static SwapByteOrder ( double val ) : double
val double
return double

SwapByteOrder() public static method

public static SwapByteOrder ( int val ) : int
val int
return int

SwapByteOrder() public static method

public static SwapByteOrder ( short val ) : short
val short
return short

Property Details

CaseUsername public static property

public static string CaseUsername
return string

Chunks public static property

public static Dictionary,MinecraftLevel.Chunk> Chunks
return MinecraftLevel.Chunk>.Dictionary

ChunksNeeded public static property

public static Dictionary,bool> ChunksNeeded
return bool>.Dictionary

Connected public static property

public static bool Connected
return bool

Connection public static property

public static TcpClient,System.Net.Sockets Connection
return System.Net.Sockets.TcpClient

Handler public static property

public static PacketHandler,MineViewer Handler
return PacketHandler

IsSMP public static property

public static bool IsSMP
return bool

Kicked public static property

public static bool Kicked
return bool

LastError public static property

public static string LastError
return string

PacketTypeLengths public static property

public static int[] PacketTypeLengths
return int[]

PlayerX public static property

public static double PlayerX
return double

PlayerY public static property

public static double PlayerY
return double

PlayerZ public static property

public static double PlayerZ
return double

Reader public static property

public static BinaryReader,System.IO Reader
return System.IO.BinaryReader

SessionHash public static property

public static string SessionHash
return string

SessionID public static property

public static string SessionID
return string

SrvPassword public static property

public static string SrvPassword
return string

TransChunks public static property

public static Dictionary,MinecraftLevel.Chunk> TransChunks
return MinecraftLevel.Chunk>.Dictionary

Username public static property

public static string Username
return string