"Game mode: %s (ID %d). Hardcore: %b. Commands: %b",
20
this.getGameType().getName(),
21
this.getGameType().getId(),
22
this.isHardcore(),
23
this.isAllowCommands()
24
)
25
);
26
}
27
28
GameType getGameType();
29
30
boolean isInitialized();
31
32
void setInitialized(boolean initialized);
33
34
boolean isAllowCommands();
35
36
void setAllowCommands(boolean allowCommands);
37
38
void setGameType(GameType gameType);
39
40
void setGameTime(final long time);
41
}
42
Decompiled Minecraft 26.3 source of ServerLevelData (net/minecraft/world/level/storage/ServerLevelData.java) with Mojang official mappings, stored verbatim on the site.