C# Класс 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.
Наследование: Packet
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Описание методов

LoginRequestPacketSC() публичный Метод

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
Результат System

LoginRequestPacketSC() публичный Метод

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.
Результат System

Описание свойств

Difficulty публичное свойство

public sbyte Difficulty
Результат sbyte

Dimension публичное свойство

Current dimension on the server.
-1 = Nether, 0 = Overworld, 1 = The End.
public int Dimension
Результат int

Dimension публичное свойство

public sbyte Dimension
Результат sbyte

EntityID публичное свойство

public Int32,System EntityID
Результат System.Int32

EntityID публичное свойство

Entity ID of the player.
public int EntityID
Результат int

Gamemode публичное свойство

public Int32,System Gamemode
Результат System.Int32

Gamemode публичное свойство

Game mode on the server.
0 = Survival, 1 = Creative.
public int Gamemode
Результат int

LevelType публичное свойство

public string LevelType
Результат string

MapSeed публичное свойство

public Int64,System MapSeed
Результат System.Int64

MaxPlayers публичное свойство

public byte MaxPlayers
Результат byte

NotUsed публичное свойство

public string NotUsed
Результат string

WorldHeight публичное свойство

public byte WorldHeight
Результат byte