/* * Decompiled with CFR 0.152. */ package net.minecraft.client.model; import net.minecraft.client.model.NautilusModel; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.client.model.geom.PartPose; import net.minecraft.client.model.geom.builders.CubeDeformation; import net.minecraft.client.model.geom.builders.CubeListBuilder; import net.minecraft.client.model.geom.builders.LayerDefinition; import net.minecraft.client.model.geom.builders.MeshDefinition; import net.minecraft.client.model.geom.builders.PartDefinition; public class NautilusSaddleModel extends NautilusModel { private final ModelPart nautilus; private final ModelPart shell; public NautilusSaddleModel(ModelPart root) { super(root); this.nautilus = root.getChild("root"); this.shell = this.nautilus.getChild("shell"); } public static LayerDefinition createSaddleLayer() { MeshDefinition meshdefinition = NautilusSaddleModel.createBodyMesh(); PartDefinition partdefinition = meshdefinition.getRoot(); PartDefinition nautilus = partdefinition.addOrReplaceChild("root", CubeListBuilder.create(), PartPose.offset(0.0f, 29.0f, -6.0f)); nautilus.addOrReplaceChild("shell", CubeListBuilder.create().texOffs(0, 0).addBox(-7.0f, -10.0f, -7.0f, 14.0f, 10.0f, 16.0f, new CubeDeformation(0.2f)), PartPose.offset(0.0f, -13.0f, 5.0f)); return LayerDefinition.create(meshdefinition, 128, 128); } }