/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.entity; import net.minecraft.client.model.CamelModel; import net.minecraft.client.model.CamelSaddleModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.CamelRenderer; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.renderer.entity.layers.SimpleEquipmentLayer; import net.minecraft.client.renderer.entity.state.CamelRenderState; import net.minecraft.client.resources.model.EquipmentClientInfo; import net.minecraft.resources.Identifier; public class CamelHuskRenderer extends CamelRenderer { private static final Identifier CAMEL_HUSK_LOCATION = Identifier.withDefaultNamespace("textures/entity/camel/camel_husk.png"); public CamelHuskRenderer(EntityRendererProvider.Context context) { super(context); } @Override protected SimpleEquipmentLayer createCamelSaddleLayer(EntityRendererProvider.Context context) { return new SimpleEquipmentLayer(this, context.getEquipmentRenderer(), EquipmentClientInfo.LayerType.CAMEL_HUSK_SADDLE, state -> state.saddle, new CamelSaddleModel(context.bakeLayer(ModelLayers.CAMEL_HUSK_SADDLE)), new CamelSaddleModel(context.bakeLayer(ModelLayers.CAMEL_HUSK_BABY_SADDLE))); } @Override public Identifier getTextureLocation(CamelRenderState state) { return CAMEL_HUSK_LOCATION; } }