接口 GameOptions实验性

interface GameOptions {
    bonusChest?: boolean;
    cheats?: boolean;
    commandBlockEnabled?: boolean;
    daylightCycle?: DaylightCycle;
    difficulty?: Difficulty;
    dimensionId?: string;
    disableWeather?: boolean;
    educationEdition?: boolean;
    entitiesDropLoot?: boolean;
    exportType?: ProjectExportType;
    fireSpreads?: boolean;
    friendlyFire?: boolean;
    gameMode?: GameMode;
    hardcore?: boolean;
    immediateRespawn?: boolean;
    keepInventory?: boolean;
    lanVisibility?: boolean;
    mobGriefing?: boolean;
    mobLoot?: boolean;
    mobSpawning?: boolean;
    multiplayerGame?: boolean;
    naturalRegeneration?: boolean;
    playerAccess?: GamePublishSetting;
    playerPermissions?: PlayerPermissionLevel;
    randomTickSpeed?: number;
    recipeUnlocking?: boolean;
    respawnBlocksExplode?: boolean;
    respawnRadius?: number;
    showCoordinates?: boolean;
    showDaysPlayed?: boolean;
    simulationDistance?: number;
    spawnPosition?: Vector3;
    startingMap?: boolean;
    tileDrops?: boolean;
    timeOfDay?: number;
    tntExplodes?: boolean;
    weather?: number;
    worldName?: string;
}

属性

bonusChest?: boolean
cheats?: boolean
commandBlockEnabled?: boolean
daylightCycle?: DaylightCycle
difficulty?: Difficulty
dimensionId?: string
disableWeather?: boolean
educationEdition?: boolean
entitiesDropLoot?: boolean
exportType?: ProjectExportType
fireSpreads?: boolean
friendlyFire?: boolean
gameMode?: GameMode
hardcore?: boolean
immediateRespawn?: boolean
keepInventory?: boolean
lanVisibility?: boolean
mobGriefing?: boolean
mobLoot?: boolean
mobSpawning?: boolean
multiplayerGame?: boolean
naturalRegeneration?: boolean
playerAccess?: GamePublishSetting
playerPermissions?: PlayerPermissionLevel
randomTickSpeed?: number
recipeUnlocking?: boolean
respawnBlocksExplode?: boolean
respawnRadius?: number
showCoordinates?: boolean
showDaysPlayed?: boolean
simulationDistance?: number
spawnPosition?: Vector3
startingMap?: boolean
tileDrops?: boolean
timeOfDay?: number
tntExplodes?: boolean
weather?: number
worldName?: string