Minor version number (e.g., 0 in 1.0.0)
Patch version number (e.g., 0 in 1.0.0). Optional.
ReadonlymajorMajor version number (e.g., 1 in 1.0.0)
ReadonlyminorMinor version number (e.g., 0 in 1.0.0)
ReadonlypatchPatch version number (e.g., 0 in 1.0.0). Optional.
StaticinitSubscribes to player spawn events to check if a version update should be shown.
StaticregisterRegisters the current game version and stores it in world dynamic properties. Should be called once during Add-On startup.
Optionalpatch: numberStaticparseParses a semantic version string, such as "1.2.3", into a VersionUtil instance. Returns null if the format is invalid.
Compares this version to another version.
A negative number if this is lower than the other, 0 if equal, positive if this is higher than other.
Converts the version to a string in semantic version format.
Major version number (e.g., 1 in 1.0.0)