Enum Class ModelMeta.FormatVersion
- All Implemented Interfaces:
Serializable, Comparable<ModelMeta.FormatVersion>, Constable
- Enclosing class:
ModelMeta
Enumerates supported BlockBench format versions and their specific coordinate conversions.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlockBench version 5.0.0 and later.Legacy BlockBench versions (pre-5.0.0). -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull org.joml.Vector3fconvertAnimationPosition(@NotNull org.joml.Vector3f vector) Converts animation position values to the engine's coordinate system.abstract @NotNull org.joml.Vector3fconvertAnimationRotation(@NotNull org.joml.Vector3f vector) Converts animation rotation values to the engine's coordinate system.@NotNull org.joml.Vector3fconvertAnimationScale(@NotNull org.joml.Vector3f vector) Converts animation scale values to the engine's format (relative to 1.0).static @NotNull ModelMeta.FormatVersionfind(int major) Finds the appropriate format version based on the major version number.static ModelMeta.FormatVersionReturns the enum constant of this class with the specified name.static ModelMeta.FormatVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCKBENCH_5
BlockBench version 5.0.0 and later.- Since:
- 1.15.2
-
BLOCKBENCH_LEGACY
Legacy BlockBench versions (pre-5.0.0).- Since:
- 1.15.2
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
find
Finds the appropriate format version based on the major version number.- Parameters:
major- the major version number- Returns:
- the matching format version
- Throws:
NoSuchElementException- if no matching version is found- Since:
- 1.15.2
-
convertAnimationRotation
@NotNull public abstract @NotNull org.joml.Vector3f convertAnimationRotation(@NotNull @NotNull org.joml.Vector3f vector) Converts animation rotation values to the engine's coordinate system.- Parameters:
vector- the raw rotation vector- Returns:
- the converted rotation vector
- Since:
- 1.15.2
-
convertAnimationPosition
@NotNull public abstract @NotNull org.joml.Vector3f convertAnimationPosition(@NotNull @NotNull org.joml.Vector3f vector) Converts animation position values to the engine's coordinate system.- Parameters:
vector- the raw position vector- Returns:
- the converted position vector
- Since:
- 1.15.2
-
convertAnimationScale
@NotNull public @NotNull org.joml.Vector3f convertAnimationScale(@NotNull @NotNull org.joml.Vector3f vector) Converts animation scale values to the engine's format (relative to 1.0).- Parameters:
vector- the raw scale vector- Returns:
- the converted scale vector
- Since:
- 1.15.2
-