Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeppelinMC/Zeppelin
/ GameMode
Method
GameMode
server/player/state/playerEntity.go:71–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
69
}
70
71
func
(p *PlayerEntity) GameMode() level.GameMode {
72
return
level.GameMode(p.gameMode.Load())
73
}
74
75
func
(p *PlayerEntity) SetGameMode(mode level.GameMode) {
76
p.gameMode.Store(int32(mode))
Callers
1
startGame
Method · 0.80
Calls
1
GameMode
TypeAlias · 0.92
Tested by
no test coverage detected