Class BlockModelBuilder.RootTransformBuilder

java.lang.Object
net.minecraftforge.client.model.generators.BlockModelBuilder.RootTransformBuilder
Enclosing class:
BlockModelBuilder

@Deprecated(forRemoval=true, since="1.19.4") public class BlockModelBuilder.RootTransformBuilder extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

  • Constructor Details

  • Method Details

    • translation

      public BlockModelBuilder.RootTransformBuilder translation(org.joml.Vector3f translation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the translation of the root transform.
      Parameters:
      translation - the translation
      Returns:
      this builder
      Throws:
      NullPointerException - if translation is null
    • translation

      public BlockModelBuilder.RootTransformBuilder translation(float x, float y, float z)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the translation of the root transform.
      Parameters:
      x - x translation
      y - y translation
      z - z translation
      Returns:
      this builder
    • rotation

      public BlockModelBuilder.RootTransformBuilder rotation(org.joml.Quaternionf rotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the left rotation of the root transform.
      Parameters:
      rotation - the left rotation
      Returns:
      this builder
      Throws:
      NullPointerException - if rotation is null
    • rotation

      public BlockModelBuilder.RootTransformBuilder rotation(float x, float y, float z, boolean isDegrees)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the left rotation of the root transform.
      Parameters:
      x - x rotation
      y - y rotation
      z - z rotation
      isDegrees - whether the rotation is in degrees or radians
      Returns:
      this builder
    • leftRotation

      public BlockModelBuilder.RootTransformBuilder leftRotation(org.joml.Quaternionf leftRotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the left rotation of the root transform.
      Parameters:
      leftRotation - the left rotation
      Returns:
      this builder
      Throws:
      NullPointerException - if leftRotation is null
    • leftRotation

      public BlockModelBuilder.RootTransformBuilder leftRotation(float x, float y, float z, boolean isDegrees)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the left rotation of the root transform.
      Parameters:
      x - x rotation
      y - y rotation
      z - z rotation
      isDegrees - whether the rotation is in degrees or radians
      Returns:
      this builder
    • rightRotation

      public BlockModelBuilder.RootTransformBuilder rightRotation(org.joml.Quaternionf rightRotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the right rotation of the root transform.
      Parameters:
      rightRotation - the right rotation
      Returns:
      this builder
      Throws:
      NullPointerException - if rightRotation is null
    • rightRotation

      public BlockModelBuilder.RootTransformBuilder rightRotation(float x, float y, float z, boolean isDegrees)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the right rotation of the root transform.
      Parameters:
      x - x rotation
      y - y rotation
      z - z rotation
      isDegrees - whether the rotation is in degrees or radians
      Returns:
      this builder
    • postRotation

      public BlockModelBuilder.RootTransformBuilder postRotation(org.joml.Quaternionf postRotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the right rotation of the root transform.
      Parameters:
      postRotation - the right rotation
      Returns:
      this builder
      Throws:
      NullPointerException - if rightRotation is null
    • postRotation

      public BlockModelBuilder.RootTransformBuilder postRotation(float x, float y, float z, boolean isDegrees)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the right rotation of the root transform.
      Parameters:
      x - x rotation
      y - y rotation
      z - z rotation
      isDegrees - whether the rotation is in degrees or radians
      Returns:
      this builder
    • scale

      public BlockModelBuilder.RootTransformBuilder scale(float scale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the scale of the root transform.
      Parameters:
      scale - the scale
      Returns:
      this builder
    • scale

      public BlockModelBuilder.RootTransformBuilder scale(float xScale, float yScale, float zScale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the scale of the root transform.
      Parameters:
      xScale - x scale
      yScale - y scale
      zScale - z scale
      Returns:
      this builder
    • scale

      public BlockModelBuilder.RootTransformBuilder scale(org.joml.Vector3f scale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the scale of the root transform.
      Parameters:
      scale - the scale vector
      Returns:
      this builder
      Throws:
      NullPointerException - if scale is null
    • transform

      public BlockModelBuilder.RootTransformBuilder transform(Transformation transformation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the root transform.
      Parameters:
      transformation - the transformation to use
      Returns:
      this builder
      Throws:
      NullPointerException - if transformation is null
    • origin

      public BlockModelBuilder.RootTransformBuilder origin(org.joml.Vector3f origin)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the origin of the root transform.
      Parameters:
      origin - the origin vector
      Returns:
      this builder
      Throws:
      NullPointerException - if origin is null
    • origin

      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the origin of the root transform.
      Parameters:
      origin - the origin name
      Returns:
      this builder
      Throws:
      NullPointerException - if origin is null
      IllegalArgumentException - if origin is not center, corner or opposing-corner
    • end

      public BlockModelBuilder end()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Finish configuring the parent builder
      Returns:
      the parent block model builder
    • toJson

      public com.google.gson.JsonObject toJson()
      Deprecated, for removal: This API element is subject to removal in a future version.