/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.entity; import net.minecraft.client.model.SkeletonModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.AbstractSkeletonRenderer; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.renderer.entity.layers.SkeletonClothingLayer; import net.minecraft.client.renderer.entity.state.SkeletonRenderState; import net.minecraft.resources.Identifier; import net.minecraft.world.entity.monster.Stray; public class StrayRenderer extends AbstractSkeletonRenderer { private static final Identifier STRAY_SKELETON_LOCATION = Identifier.withDefaultNamespace("textures/entity/skeleton/stray.png"); private static final Identifier STRAY_CLOTHES_LOCATION = Identifier.withDefaultNamespace("textures/entity/skeleton/stray_overlay.png"); public StrayRenderer(EntityRendererProvider.Context context) { super(context, ModelLayers.STRAY, ModelLayers.STRAY_ARMOR); this.addLayer(new SkeletonClothingLayer>(this, context.getModelSet(), ModelLayers.STRAY_OUTER_LAYER, STRAY_CLOTHES_LOCATION)); } @Override public Identifier getTextureLocation(SkeletonRenderState state) { return STRAY_SKELETON_LOCATION; } @Override public SkeletonRenderState createRenderState() { return new SkeletonRenderState(); } }