36 lines
1.5 KiB
Java
36 lines
1.5 KiB
Java
/*
|
|
* 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<Stray, SkeletonRenderState> {
|
|
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<SkeletonRenderState, SkeletonModel<SkeletonRenderState>>(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();
|
|
}
|
|
}
|
|
|