package net.minecraft.client.renderer.entity; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.layers.SkeletonClothingLayer; import net.minecraft.client.renderer.entity.state.SkeletonRenderState; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.monster.Stray; @Environment(EnvType.CLIENT) public class StrayRenderer extends AbstractSkeletonRenderer { private static final ResourceLocation STRAY_SKELETON_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/skeleton/stray.png"); private static final ResourceLocation STRAY_CLOTHES_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/skeleton/stray_overlay.png"); public StrayRenderer(EntityRendererProvider.Context context) { super(context, ModelLayers.STRAY, ModelLayers.STRAY_INNER_ARMOR, ModelLayers.STRAY_OUTER_ARMOR); this.addLayer(new SkeletonClothingLayer<>(this, context.getModelSet(), ModelLayers.STRAY_OUTER_LAYER, STRAY_CLOTHES_LOCATION)); } public ResourceLocation getTextureLocation(SkeletonRenderState skeletonRenderState) { return STRAY_SKELETON_LOCATION; } public SkeletonRenderState createRenderState() { return new SkeletonRenderState(); } }