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

35 lines
1.5 KiB
Java

/*
* 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<CamelRenderState, CamelModel, CamelSaddleModel> createCamelSaddleLayer(EntityRendererProvider.Context context) {
return new SimpleEquipmentLayer<CamelRenderState, CamelModel, CamelSaddleModel>(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;
}
}