C# Class MineViewer.SMPInterface

显示文件 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_oe static_oe property

public static string CaseUsername
return string

Chunks public_oe static_oe property

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

ChunksNeeded public_oe static_oe property

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

Connected public_oe static_oe property

public static bool Connected
return bool

Connection public_oe static_oe property

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

Handler public_oe static_oe property

public static PacketHandler,MineViewer Handler
return PacketHandler

IsSMP public_oe static_oe property

public static bool IsSMP
return bool

Kicked public_oe static_oe property

public static bool Kicked
return bool

LastError public_oe static_oe property

public static string LastError
return string

PacketTypeLengths public_oe static_oe property

public static int[] PacketTypeLengths
return int[]

PlayerX public_oe static_oe property

public static double PlayerX
return double

PlayerY public_oe static_oe property

public static double PlayerY
return double

PlayerZ public_oe static_oe property

public static double PlayerZ
return double

Reader public_oe static_oe property

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

SessionHash public_oe static_oe property

public static string SessionHash
return string

SessionID public_oe static_oe property

public static string SessionID
return string

SrvPassword public_oe static_oe property

public static string SrvPassword
return string

TransChunks public_oe static_oe property

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

Username public_oe static_oe property

public static string Username
return string