2025-11-24 22:52:51 +03:00

26 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.model;
import net.minecraft.client.model.CowModel;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.CubeListBuilder;
import net.minecraft.client.model.geom.builders.LayerDefinition;
import net.minecraft.client.model.geom.builders.MeshDefinition;
public class WarmCowModel
extends CowModel {
public WarmCowModel(ModelPart root) {
super(root);
}
public static LayerDefinition createBodyLayer() {
MeshDefinition mesh = WarmCowModel.createBaseCowModel();
mesh.getRoot().addOrReplaceChild("head", CubeListBuilder.create().texOffs(0, 0).addBox(-4.0f, -4.0f, -6.0f, 8.0f, 8.0f, 6.0f).texOffs(1, 33).addBox(-3.0f, 1.0f, -7.0f, 6.0f, 3.0f, 1.0f).texOffs(27, 0).addBox(-8.0f, -3.0f, -5.0f, 4.0f, 2.0f, 2.0f).texOffs(39, 0).addBox(-8.0f, -5.0f, -5.0f, 2.0f, 2.0f, 2.0f).texOffs(27, 0).mirror().addBox(4.0f, -3.0f, -5.0f, 4.0f, 2.0f, 2.0f).mirror(false).texOffs(39, 0).mirror().addBox(6.0f, -5.0f, -5.0f, 2.0f, 2.0f, 2.0f).mirror(false), PartPose.offset(0.0f, 4.0f, -8.0f));
return LayerDefinition.create(mesh, 64, 64);
}
}