Skip to content

Commit

Permalink
baby kindlings are smol
Browse files Browse the repository at this point in the history
  • Loading branch information
DaFuqs committed Nov 16, 2023
1 parent e5b59dc commit 651c0e9
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static TexturedModelData getTexturedModelData() {

return TexturedModelData.of(modelData, 128, 128);
}

@Override
public ModelPart getPart() {
return this.body;
Expand All @@ -101,9 +101,9 @@ public ModelPart getPart() {
@Override
public void setAngles(KindlingEntity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
this.getPart().traverse().forEach(ModelPart::resetTransform);

this.setHeadAngle(netHeadYaw, headPitch);

this.updateAnimation(entity.standingAnimationState, KindlingAnimations.STANDING, ageInTicks);
this.updateAnimation(entity.walkingAnimationState, KindlingAnimations.WALKING, ageInTicks);
this.updateAnimation(entity.standingAngryAnimationState, KindlingAnimations.STANDING_ANGRY, ageInTicks);
Expand All @@ -115,10 +115,13 @@ private void setHeadAngle(float yaw, float pitch) {
this.head.pitch = pitch * 0.017453292F;
this.head.yaw = yaw * 0.017453292F;
}



@Override
public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) {
if (child) {
matrices.scale(0.6f, 0.6f, 0.6f);
matrices.translate(0, 1, 0);
}
body.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha);
}

Expand Down

0 comments on commit 651c0e9

Please sign in to comment.