Enum Class ModelMeta.FormatVersion

java.lang.Object
java.lang.Enum<ModelMeta.FormatVersion>
kr.toxicity.model.api.data.raw.ModelMeta.FormatVersion
All Implemented Interfaces:
Serializable, Comparable<ModelMeta.FormatVersion>, Constable
Enclosing class:
ModelMeta

public static enum ModelMeta.FormatVersion extends Enum<ModelMeta.FormatVersion>
Enumerates supported BlockBench format versions and their specific coordinate conversions.
Since:
1.15.2
  • Enum Constant Details

    • BLOCKBENCH_5

      public static final ModelMeta.FormatVersion BLOCKBENCH_5
      BlockBench version 5.0.0 and later.
      Since:
      1.15.2
    • BLOCKBENCH_LEGACY

      public static final ModelMeta.FormatVersion BLOCKBENCH_LEGACY
      Legacy BlockBench versions (pre-5.0.0).
      Since:
      1.15.2
  • Method Details

    • values

      public static ModelMeta.FormatVersion[] 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

      public static ModelMeta.FormatVersion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • find

      @NotNull public static @NotNull ModelMeta.FormatVersion find(int major)
      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