Class ModelPartState

java.lang.Object
dev.oxydien.mathimations.model.ModelPartState

public class ModelPartState extends Object
  • Constructor Details

    • ModelPartState

      protected ModelPartState()
      Creates a new ModelPartState with all values set to 0
    • ModelPartState

      public ModelPartState(net.minecraft.client.model.geom.ModelPart part)
      Creates a new ModelPartState based on the initial transform and scale of the given part.
      Parameters:
      part - The part to get the initial transform and scale from
    • ModelPartState

      public ModelPartState(net.minecraft.client.model.geom.PartPose transform, org.joml.Vector3f scale)
    • ModelPartState

      public ModelPartState(ModelPartState other)
      Copy constructor
  • Method Details

    • createDefault

      public static ModelPartState createDefault()
    • fromPart

      public static ModelPartState fromPart(net.minecraft.client.model.geom.ModelPart part)
    • lerp

      public void lerp(ModelPartState other, float lerp)
    • applyTo

      public void applyTo(net.minecraft.client.model.geom.ModelPart modelPart)
    • getPitch

      public float getPitch()
    • getYaw

      public float getYaw()
    • getRoll

      public float getRoll()
    • getScaleX

      public float getScaleX()
    • getScaleY

      public float getScaleY()
    • getScaleZ

      public float getScaleZ()
    • getPivotX

      public float getPivotX()
    • getPivotY

      public float getPivotY()
    • getPivotZ

      public float getPivotZ()
    • setPitch

      public void setPitch(float pitch)
    • setPitchDeg

      public void setPitchDeg(float pitchDeg)
    • setYaw

      public void setYaw(float yaw)
    • setYawDeg

      public void setYawDeg(float yawDeg)
    • setRoll

      public void setRoll(float roll)
    • setRollDeg

      public void setRollDeg(float rollDeg)
    • setRotation

      public void setRotation(float x, float y, float z)
    • setRotationDeg

      public void setRotationDeg(float x, float y, float z)
    • setRotationX

      public void setRotationX(float x)
    • setRotationY

      public void setRotationY(float y)
    • setRotationZ

      public void setRotationZ(float z)
    • rotateX

      public void rotateX(float x)
    • rotateY

      public void rotateY(float y)
    • rotateZ

      public void rotateZ(float z)
    • setScaleX

      public void setScaleX(float scaleX)
    • setScaleY

      public void setScaleY(float scaleY)
    • setScaleZ

      public void setScaleZ(float scaleZ)
    • setScale

      public void setScale(float scaleX, float scaleY, float scaleZ)
    • setScale

      public void setScale(float scale)
    • setPivot

      public void setPivot(float x, float y, float z)
    • setPivotX

      public void setPivotX(float x)
    • setPivotY

      public void setPivotY(float y)
    • setPivotZ

      public void setPivotZ(float z)
    • translate

      public void translate(float x, float y, float z)
    • translateX

      public void translateX(float x)
    • translateY

      public void translateY(float y)
    • translateZ

      public void translateZ(float z)
    • copy

      public ModelPartState copy()
    • toString

      public String toString()
      Overrides:
      toString in class Object