All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magistuarmory.client.render.model.item.MedievalShieldModel Maven / Gradle / Ivy

package com.magistuarmory.client.render.model.item;

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.Model;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.renderer.RenderType;

@Environment(EnvType.CLIENT)
public class MedievalShieldModel extends Model
{
	private final ModelPart root;
	private final ModelPart plate;
	private final ModelPart handle;
	
	public MedievalShieldModel(ModelPart root) 
	{
		super(RenderType::m_110452_);
		this.root = root;
		this.plate = root.m_171324_("plate");
		this.handle = root.m_171324_("handle");
	}

	public ModelPart plate()
	{
		return this.plate;
	}

	public ModelPart handle()
	{
		return this.handle;
	}

	public void m_7695_(PoseStack pose, VertexConsumer vertexconsumer, int i, int j, float f, float g, float h, float k)
	{
		this.root.m_104306_(pose, vertexconsumer, i, j, f, g, h, k);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy