PackVersion

Represents a pack version, consisting of major and minor numbers.

Since

1.15.2

Parameters

major

the major version

minor

the minor version

Constructors

Link copied to clipboard
constructor(major: Int)
Creates a pack version with only a major number.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun toJson(): @NotNull JsonElement
Converts this version to a JSON element.
Link copied to clipboard
abstract fun toString(): String