C# Class MineViewer.SMPInterface

Afficher le fichier Open project: dzamkov/MineViewer Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AuthConnect ( string _Username, string _ServerID ) : bool
_Username string
_ServerID string
Résultat bool

Connect() public static méthode

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
Résultat bool

Debug() public static méthode

public static Debug ( string s ) : void
s string
Résultat void

Disconnect() public static méthode

public static Disconnect ( ) : void
Résultat void

GetChunk() public static méthode

public static GetChunk ( Cubia pos, bool trans ) : MinecraftLevel.Chunk
pos Cubia
trans bool
Résultat MinecraftLevel.Chunk

Subscribe() public static méthode

public static Subscribe ( PacketTypes packet, System.Action onCall ) : void
packet PacketTypes
onCall System.Action
Résultat void

SwapByteOrder() public static méthode

public static SwapByteOrder ( double val ) : double
val double
Résultat double

SwapByteOrder() public static méthode

public static SwapByteOrder ( int val ) : int
val int
Résultat int

SwapByteOrder() public static méthode

public static SwapByteOrder ( short val ) : short
val short
Résultat short

Property Details

CaseUsername public_oe static_oe property

public static string CaseUsername
Résultat string

Chunks public_oe static_oe property

public static Dictionary,MinecraftLevel.Chunk> Chunks
Résultat MinecraftLevel.Chunk>.Dictionary

ChunksNeeded public_oe static_oe property

public static Dictionary,bool> ChunksNeeded
Résultat bool>.Dictionary

Connected public_oe static_oe property

public static bool Connected
Résultat bool

Connection public_oe static_oe property

public static TcpClient,System.Net.Sockets Connection
Résultat System.Net.Sockets.TcpClient

Handler public_oe static_oe property

public static PacketHandler,MineViewer Handler
Résultat PacketHandler

IsSMP public_oe static_oe property

public static bool IsSMP
Résultat bool

Kicked public_oe static_oe property

public static bool Kicked
Résultat bool

LastError public_oe static_oe property

public static string LastError
Résultat string

PacketTypeLengths public_oe static_oe property

public static int[] PacketTypeLengths
Résultat int[]

PlayerX public_oe static_oe property

public static double PlayerX
Résultat double

PlayerY public_oe static_oe property

public static double PlayerY
Résultat double

PlayerZ public_oe static_oe property

public static double PlayerZ
Résultat double

Reader public_oe static_oe property

public static BinaryReader,System.IO Reader
Résultat System.IO.BinaryReader

SessionHash public_oe static_oe property

public static string SessionHash
Résultat string

SessionID public_oe static_oe property

public static string SessionID
Résultat string

SrvPassword public_oe static_oe property

public static string SrvPassword
Résultat string

TransChunks public_oe static_oe property

public static Dictionary,MinecraftLevel.Chunk> TransChunks
Résultat MinecraftLevel.Chunk>.Dictionary

Username public_oe static_oe property

public static string Username
Résultat string