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).

Functions

Link copied to clipboard
@NotNull
abstract fun convertAnimationPosition(@NotNull vector: @NotNull Vector3f): @NotNull Vector3f
Converts animation position values to the engine's coordinate system.
Link copied to clipboard
@NotNull
abstract fun convertAnimationRotation(@NotNull vector: @NotNull Vector3f): @NotNull Vector3f
Converts animation rotation values to the engine's coordinate system.
Link copied to clipboard
@NotNull
open fun convertAnimationScale(@NotNull vector: @NotNull Vector3f): @NotNull Vector3f
Converts animation scale values to the engine's format (relative to 1.0).
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.