Class AxolotlModel<T extends Axolotl & LerpingModel>


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

  • Constructor Details

    • AxolotlModel

      public AxolotlModel(ModelPart root)
  • 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 entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
      Sets this entity's model rotation angles
      Specified by:
      setupAnim in class EntityModel<T extends Axolotl & LerpingModel>
    • saveAnimationValues

      private void saveAnimationValues(T axolotl)
    • getRotationVector

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

      private void setRotationFromVector(ModelPart part, org.joml.Vector3f rotation)
    • setupInitialAnimationValues

      private void setupInitialAnimationValues(T axolotl, float netHeadYaw, float headPitch)
    • lerpTo

      private float lerpTo(float start, float end)
    • lerpTo

      private float lerpTo(float delta, float start, float end)
    • lerpPart

      private void lerpPart(ModelPart part, float xDelta, float yDelta, float zDelta)
    • setupLayStillOnGroundAnimation

      private void setupLayStillOnGroundAnimation(float ageInTicks, float netHeadYaw)
    • setupGroundCrawlingAnimation

      private void setupGroundCrawlingAnimation(float ageInTicks, float netHeadYaw)
    • setupWaterHoveringAnimation

      private void setupWaterHoveringAnimation(float ageInTicks)
    • setupSwimmingAnimation

      private void setupSwimmingAnimation(float ageInTicks, float headPitch)
    • setupPlayDeadAnimation

      private void setupPlayDeadAnimation(float netHeadYaw)
    • applyMirrorLegRotations

      private void applyMirrorLegRotations()