MCPcopy 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
71func (p *PlayerEntity) GameMode() level.GameMode {
72 return level.GameMode(p.gameMode.Load())
73}
74
75func (p *PlayerEntity) SetGameMode(mode level.GameMode) {
76 p.gameMode.Store(int32(mode))

Callers 1

startGameMethod · 0.80

Calls 1

GameModeTypeAlias · 0.92

Tested by

no test coverage detected