5ca16b97fc
The file is generated from the pinned version lock, and test_gen_version_consts checks JAVA_VERSION against it; deleting constants by hand breaks the next regeneration and that test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
1.1 KiB
Rust
22 lines
1.1 KiB
Rust
//! What Minecraft 26.3 states about itself (the client jar's `version.json`,
|
|
//! `SharedConstants.getCurrentVersion()`). Generated by tools/gen_version_consts.py; do not edit by hand.
|
|
|
|
/// `WorldVersion.id()`.
|
|
pub const VERSION_ID: &str = "26.3";
|
|
/// `WorldVersion.name()`: level.dat, the server list, crash reports.
|
|
pub const VANILLA_VERSION: &str = "26.3";
|
|
/// `SharedConstants.getProtocolVersion()`.
|
|
pub const PROTOCOL_VERSION: i32 = 777;
|
|
/// `WorldVersion.dataVersion()`: the DataVersion of saved chunks, entities and level.dat.
|
|
pub const DATA_VERSION: i32 = 5023;
|
|
/// `WorldVersion.packVersion(PackType.CLIENT_RESOURCES)`: (major, minor).
|
|
pub const RESOURCE_PACK_FORMAT: (i64, i64) = (97, 1);
|
|
/// `WorldVersion.packVersion(PackType.SERVER_DATA)`: (major, minor).
|
|
pub const DATA_PACK_FORMAT: (i64, i64) = (121, 0);
|
|
/// The Java major version the game runs on.
|
|
pub const JAVA_VERSION: u32 = 25;
|
|
/// `WorldVersion.stable()`: false for snapshots and pre-releases.
|
|
pub const STABLE: bool = true;
|
|
/// `WorldVersion.buildTime()` as `Date.toString()` prints it in UTC (`/version`).
|
|
pub const BUILD_TIME: &str = "Tue Sep 15 11:20:48 UTC 2026";
|