import { Gametype } from './generated/Gametype.js'; /** * Re-exported from the generated source, built from Mojang's protocol documentation for the * version pinned in `datagen/manifest.json`. Only the helpers below are maintained by hand. */ export { Gametype }; /** * Gametype name. * @group Gametype */ export type GametypeName = 'Survival' | 'Creative' | 'Adventure' | 'Spectator'; /** * Get Gametype name. * @param {Gametype} mode - The Gametype to get the name of. * @returns {GametypeName} The Gametype name. * @throws {MinecraftErrors.GametypeInvalid} Thrown if the Gametype is invalid. * @group Gametype * @example * ```typescript * const gametype = getGametypeName(Gametype.SURVIVAL); * console.log(gametype); // 'Survival' * ``` */ export declare function getGametypeName(mode: Gametype): GametypeName; /** * Get Gametype from name. * @param {GametypeName | string | number} mode - The Gametype to get the ID of. * @returns {Gametype} The Gametype ID. * @throws {MinecraftErrors.GametypeInvalid} Thrown if the Gametype is invalid. * @group Gametype * @example * ```typescript * const gametype = getGametypeId('survival'); * console.log(gametype); // 0 * ``` */ export declare function getGametypeId(mode: GametypeName | string | number): Gametype; //# sourceMappingURL=Gametype.d.ts.map