C# Class Sharpcraft.Networking.Packets.LoginRequestPacketSC

LoginRequest packet sent by the server to the client after a login request has been accepted.
If login request is denied a DisconnectKickPacket is sent instead.
Inheritance: Packet
显示文件 Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Properties

Property Type Description
Difficulty sbyte
Dimension int
Dimension sbyte
EntityID System.Int32
EntityID int
Gamemode System.Int32
Gamemode int
LevelType string
MapSeed System.Int64
MaxPlayers byte
NotUsed string
WorldHeight byte

Public Methods

Method Description
LoginRequestPacketSC ( Int32 entityId, System.Int64 mapSeed, string levelType = null, Int32 gamemode, sbyte dimension, sbyte difficulty, byte worldHeight, byte maxPlayers ) : System
LoginRequestPacketSC ( Int32 entityId, string notUsed = "", string levelType = null, Int32 gamemode, Int32 dimension, sbyte difficulty, byte worldHeight, byte maxPlayers ) : System

Initialize a new LoginRequestPacketSC.

Method Details

LoginRequestPacketSC() public method

public LoginRequestPacketSC ( Int32 entityId, System.Int64 mapSeed, string levelType = null, Int32 gamemode, sbyte dimension, sbyte difficulty, byte worldHeight, byte maxPlayers ) : System
entityId System.Int32
mapSeed System.Int64
levelType string
gamemode System.Int32
dimension sbyte
difficulty sbyte
worldHeight byte
maxPlayers byte
return System

LoginRequestPacketSC() public method

Initialize a new LoginRequestPacketSC.
public LoginRequestPacketSC ( Int32 entityId, string notUsed = "", string levelType = null, Int32 gamemode, Int32 dimension, sbyte difficulty, byte worldHeight, byte maxPlayers ) : System
entityId System.Int32 Entity ID of the player.
notUsed string Not Used.
levelType string Level type on the server.
gamemode System.Int32 Game mode on the server.
dimension System.Int32 Current dimension on the server.
difficulty sbyte Difficulty on the server.
worldHeight byte Not Used.
maxPlayers byte Max players the server can hold.
return System

Property Details

Difficulty public_oe property

public sbyte Difficulty
return sbyte

Dimension public_oe property

Current dimension on the server.
-1 = Nether, 0 = Overworld, 1 = The End.
public int Dimension
return int

Dimension public_oe property

public sbyte Dimension
return sbyte

EntityID public_oe property

public Int32,System EntityID
return System.Int32

EntityID public_oe property

Entity ID of the player.
public int EntityID
return int

Gamemode public_oe property

public Int32,System Gamemode
return System.Int32

Gamemode public_oe property

Game mode on the server.
0 = Survival, 1 = Creative.
public int Gamemode
return int

LevelType public_oe property

public string LevelType
return string

MapSeed public_oe property

public Int64,System MapSeed
return System.Int64

MaxPlayers public_oe property

public byte MaxPlayers
return byte

NotUsed public_oe property

public string NotUsed
return string

WorldHeight public_oe property

public byte WorldHeight
return byte