MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / SetGameMode

Method SetGameMode

server/player/state/playerEntity.go:75–77  ·  view source on GitHub ↗
(mode level.GameMode)

Source from the content-addressed store, hash-verified

73}
74
75func (p *PlayerEntity) SetGameMode(mode level.GameMode) {
76 p.gameMode.Store(int32(mode))
77}
78
79/*func (p *PlayerEntity) RecipeBook() level.RecipeBook {
80 return p.recipeBook.Get()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected