UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

20 lines (19 loc) 857 B
/** * Returns the effective previous minor version for a given major.minor, * taking into account any skipped Minecraft version ranges. * * For example, if current is 1.26, the effective previous minor is 21 * (not 25, because 1.22–1.25 were skipped). * * If there is no skip affecting the given version, it simply returns * `minor - 1`. */ export declare function getEffectivePreviousMinor(major: number, minor: number): number; /** * Returns true if `candidateMinor` should be considered "too old" relative * to `currentMinor` for the given `major` version — i.e., it is older than * the N-1 window once skipped versions are taken into account. * * This replaces the naïve check `candidateMinor < currentMinor - 1`. */ export declare function isMinorVersionTooOld(major: number, currentMinor: number, candidateMinor: number): boolean;