java.lang.Object
net.neoforged.neoforge.client.model.generators.template.RotationBuilder

public final class RotationBuilder extends Object
  • Field Details

  • Constructor Details

    • RotationBuilder

      public RotationBuilder()
  • Method Details

    • origin

      public RotationBuilder origin(float x, float y, float z)
      Sets the origin point for this rotation.
    • singleAxis

      public RotationBuilder singleAxis(Direction.Axis axis, float angle)
      Specify a rotation around a single axis.
      Parameters:
      axis - the axis of rotation
      angle - the rotation angle around the specified axis
      Returns:
      this builder
      Throws:
      NullPointerException - if axis is null
    • eulerXYZ

      public RotationBuilder eulerXYZ(float angleX, float angleY, float angleZ)
      Specify a rotation around multiple axis.
      Parameters:
      angleX - the rotation angle around the X axis
      angleY - the rotation angle around the Y axis
      angleZ - the rotation angle around the Z axis
      Returns:
      this builder
    • rescale

      public RotationBuilder rescale(boolean rescale)
      Sets whether or not the quad should be scaled after rotation to maintain its relative size.
    • build

    • copy