Class AxolotlModel<T extends Axolotl & LerpingModel>


public class AxolotlModel<T extends Axolotl & LerpingModel> extends AgeableListModel<T>
  • Field Details

  • Constructor Details

    • AxolotlModel

      public AxolotlModel(ModelPart pRoot)
  • Method Details

    • createBodyLayer

      public static LayerDefinition createBodyLayer()
    • headParts

      protected Iterable<ModelPart> headParts()
      Specified by:
      headParts in class AgeableListModel<T extends Axolotl & LerpingModel>
    • bodyParts

      protected Iterable<ModelPart> bodyParts()
      Specified by:
      bodyParts in class AgeableListModel<T extends Axolotl & LerpingModel>
    • setupAnim

      public void setupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch)
      Sets this entity's model rotation angles
      Specified by:
      setupAnim in class EntityModel<T extends Axolotl & LerpingModel>
    • saveAnimationValues

      private void saveAnimationValues(T pAxolotl)
    • getRotationVector

      private org.joml.Vector3f getRotationVector(ModelPart p_254355_)
    • setRotationFromVector

      private void setRotationFromVector(ModelPart p_254301_, org.joml.Vector3f p_253783_)
    • setupInitialAnimationValues

      private void setupInitialAnimationValues(T pAxolotl, float pNetHeadYaw, float pHeadPitch)
    • lerpTo

      private float lerpTo(float pStart, float pEnd)
    • lerpTo

      private float lerpTo(float pDelta, float pStart, float pEnd)
    • lerpPart

      private void lerpPart(ModelPart pPart, float pXDelta, float pYDelta, float pZDelta)
    • setupLayStillOnGroundAnimation

      private void setupLayStillOnGroundAnimation(float pAgeInTicks, float pNetHeadYaw)
    • setupGroundCrawlingAnimation

      private void setupGroundCrawlingAnimation(float pAgeInTicks, float pNetHeadYaw)
    • setupWaterHoveringAnimation

      private void setupWaterHoveringAnimation(float pAgeInTicks)
    • setupSwimmingAnimation

      private void setupSwimmingAnimation(float pAgeInTicks, float pHeadPitch)
    • setupPlayDeadAnimation

      private void setupPlayDeadAnimation(float pNetHeadYaw)
    • applyMirrorLegRotations

      private void applyMirrorLegRotations()