Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.magistuarmory.client.render.model.block.PaviseBlockModel Maven / Gradle / Ivy
package com.magistuarmory.client.render.model.block;
import com.magistuarmory.client.render.model.item.MedievalShieldModel;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.*;
import net.minecraft.client.renderer.RenderType;
@Environment(EnvType.CLIENT)
public class PaviseBlockModel extends MedievalShieldModel
{
public PaviseBlockModel(ModelPart root)
{
super(root);
}
public static LayerDefinition createLayer()
{
MeshDefinition meshdefinition = new MeshDefinition();
PartDefinition partdefinition = meshdefinition.m_171576_();
partdefinition.m_171599_("plate", CubeListBuilder.m_171558_().m_171514_(52, 35).m_171488_(-9.5F, 7.0F, -5.0F, 5.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(52, 33).m_171488_(-9.5F, -18.0F, -5.0F, 5.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 58).m_171488_(-14.5F, 7.0F, -4.0F, 15.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 56).m_171488_(-15.5F, 6.0F, -4.0F, 17.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 33).m_171488_(-16.5F, -16.0F, -4.0F, 19.0F, 22.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 60).m_171488_(-15.5F, -17.0F, -4.0F, 17.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 62).m_171488_(-14.5F, -18.0F, -4.0F, 15.0F, 1.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(13, 0).m_171488_(-9.5F, -21.0F, -5.0F, 5.0F, 32.0F, 1.0F, new CubeDeformation(0.0F))
.m_171514_(0, 0).m_171488_(-22.5F, -21.0F, -4.0F, 31.0F, 32.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.m_171423_(7.0F, 2.0F, 0.0F, -0.3927F, 0.0F, 0.0F));
PartDefinition handleAndSupport = partdefinition.m_171599_("handle", CubeListBuilder.m_171558_(), PartPose.f_171404_);
handleAndSupport.m_171599_("support", CubeListBuilder.m_171558_().m_171514_(41, 6).m_171480_().m_171488_(-15.0F, -8.0F, 3.0F, 2.0F, 16.0F, 1.0F, new CubeDeformation(0.0F)).m_171555_(false)
.m_171514_(41, 6).m_171488_(-1.0F, -8.0F, 3.0F, 2.0F, 16.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.m_171423_(7.0F, 2.0F, 0.0F, 0.3927F, 0.0F, 0.0F));
handleAndSupport.m_171599_("handle2", CubeListBuilder.m_171558_().m_171514_(48, 52).m_171488_(-8.0F, -9.0F, -3.0F, 2.0F, 6.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.m_171423_(7.0F, 2.0F, 0.0F, -0.3927F, 0.0F, 0.0F));
return LayerDefinition.m_171565_(meshdefinition, 64, 64);
}
}