Update to 1.16.3 + add a few new event callbacks.

This commit is contained in:
Tom
2020-09-11 17:58:15 -07:00
parent 5bff8bcb2b
commit 0ec82d90a7
6 changed files with 122 additions and 23 deletions

View File

@ -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.