Update to 1.16.3 + add a few new event callbacks.
This commit is contained in:
@ -14,6 +14,7 @@ type Client struct {
|
||||
|
||||
player.Player
|
||||
PlayInfo
|
||||
ServInfo
|
||||
abilities PlayerAbilities
|
||||
settings Settings
|
||||
Wd world.World //the map data
|
||||
@ -49,16 +50,21 @@ func NewClient() (c *Client) {
|
||||
|
||||
//PlayInfo content player info in server.
|
||||
type PlayInfo struct {
|
||||
Gamemode int //游戏模式
|
||||
Hardcore bool //是否是极限模式
|
||||
Dimension int //维度
|
||||
Difficulty int //难度
|
||||
ViewDistance int //视距
|
||||
ReducedDebugInfo bool //减少调试信息
|
||||
WorldName string //当前世界的名字
|
||||
IsDebug bool //调试
|
||||
IsFlat bool //超平坦世界
|
||||
// SpawnPosition Position //主世界出生点
|
||||
Gamemode int //游戏模式
|
||||
Hardcore bool //是否是极限模式
|
||||
Dimension int //维度
|
||||
Difficulty int //难度
|
||||
ViewDistance int //视距
|
||||
ReducedDebugInfo bool //减少调试信息
|
||||
WorldName string //当前世界的名字
|
||||
IsDebug bool //调试
|
||||
IsFlat bool //超平坦世界
|
||||
SpawnPosition Position //主世界出生点
|
||||
}
|
||||
|
||||
// ServInfo contains information about the server implementation.
|
||||
type ServInfo struct {
|
||||
Brand string
|
||||
}
|
||||
|
||||
// PlayerAbilities defines what player can do.
|
||||
|
Reference in New Issue
Block a user