34 lines
1012 B
Java
34 lines
1012 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.model;
|
|
|
|
import net.minecraft.client.model.AbstractPiglinModel;
|
|
import net.minecraft.client.model.AnimationUtils;
|
|
import net.minecraft.client.model.geom.ModelPart;
|
|
import net.minecraft.client.renderer.entity.state.ZombifiedPiglinRenderState;
|
|
|
|
public class ZombifiedPiglinModel
|
|
extends AbstractPiglinModel<ZombifiedPiglinRenderState> {
|
|
public ZombifiedPiglinModel(ModelPart root) {
|
|
super(root);
|
|
}
|
|
|
|
@Override
|
|
public void setupAnim(ZombifiedPiglinRenderState state) {
|
|
super.setupAnim(state);
|
|
AnimationUtils.animateZombieArms(this.leftArm, this.rightArm, state.isAggressive, state);
|
|
}
|
|
|
|
@Override
|
|
public void setAllVisible(boolean visible) {
|
|
super.setAllVisible(visible);
|
|
this.leftSleeve.visible = visible;
|
|
this.rightSleeve.visible = visible;
|
|
this.leftPants.visible = visible;
|
|
this.rightPants.visible = visible;
|
|
this.jacket.visible = visible;
|
|
}
|
|
}
|
|
|