43 lines
1.8 KiB
Java
43 lines
1.8 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.minecraft.client.model.BoggedModel;
|
|
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.BoggedRenderState;
|
|
import net.minecraft.resources.Identifier;
|
|
import net.minecraft.world.entity.monster.Bogged;
|
|
|
|
public class BoggedRenderer
|
|
extends AbstractSkeletonRenderer<Bogged, BoggedRenderState> {
|
|
private static final Identifier BOGGED_SKELETON_LOCATION = Identifier.withDefaultNamespace("textures/entity/skeleton/bogged.png");
|
|
private static final Identifier BOGGED_OUTER_LAYER_LOCATION = Identifier.withDefaultNamespace("textures/entity/skeleton/bogged_overlay.png");
|
|
|
|
public BoggedRenderer(EntityRendererProvider.Context context) {
|
|
super(context, ModelLayers.BOGGED_ARMOR, new BoggedModel(context.bakeLayer(ModelLayers.BOGGED)));
|
|
this.addLayer(new SkeletonClothingLayer<BoggedRenderState, SkeletonModel<BoggedRenderState>>(this, context.getModelSet(), ModelLayers.BOGGED_OUTER_LAYER, BOGGED_OUTER_LAYER_LOCATION));
|
|
}
|
|
|
|
@Override
|
|
public Identifier getTextureLocation(BoggedRenderState state) {
|
|
return BOGGED_SKELETON_LOCATION;
|
|
}
|
|
|
|
@Override
|
|
public BoggedRenderState createRenderState() {
|
|
return new BoggedRenderState();
|
|
}
|
|
|
|
@Override
|
|
public void extractRenderState(Bogged entity, BoggedRenderState state, float partialTicks) {
|
|
super.extractRenderState(entity, state, partialTicks);
|
|
state.isSheared = entity.isSheared();
|
|
}
|
|
}
|
|
|