FormatVersion

enum class FormatVersion

Enumerates supported Blockbench format versions and their specific coordinate conversions.

Since

1.15.2

Entries

Link copied to clipboard

Blockbench version 5.0.0 and later.

Link copied to clipboard

Legacy Blockbench versions (pre-5.0.0).

Companion functions

Link copied to clipboard
@NotNull
open fun find(major: Int): @NotNull ModelMeta.FormatVersion
Finds the appropriate format version based on the major version number.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Functions

Link copied to clipboard
@NotNull
abstract fun positionAxis(): @NotNull KeyframeAxis
Link copied to clipboard
@NotNull
abstract fun rotationAxis(): @NotNull KeyframeAxis
Link copied to clipboard
@NotNull
open fun scaleAxis(): @NotNull KeyframeAxis