package net.minecraft.client.renderer.entity; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.model.CamelModel; import net.minecraft.client.model.geom.ModelLayerLocation; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.animal.camel.Camel; @Environment(EnvType.CLIENT) public class CamelRenderer extends MobRenderer> { private static final ResourceLocation CAMEL_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/camel/camel.png"); public CamelRenderer(EntityRendererProvider.Context context, ModelLayerLocation layerLocation) { super(context, new CamelModel<>(context.bakeLayer(layerLocation)), 0.7F); } /** * Returns the location of an entity's texture. */ public ResourceLocation getTextureLocation(Camel entity) { return CAMEL_LOCATION; } }