2025-11-24 22:52:51 +03:00

35 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.entity;
import net.minecraft.client.model.IllagerModel;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.IllagerRenderer;
import net.minecraft.client.renderer.entity.layers.ItemInHandLayer;
import net.minecraft.client.renderer.entity.state.IllagerRenderState;
import net.minecraft.resources.Identifier;
import net.minecraft.world.entity.monster.Pillager;
public class PillagerRenderer
extends IllagerRenderer<Pillager, IllagerRenderState> {
private static final Identifier PILLAGER = Identifier.withDefaultNamespace("textures/entity/illager/pillager.png");
public PillagerRenderer(EntityRendererProvider.Context context) {
super(context, new IllagerModel(context.bakeLayer(ModelLayers.PILLAGER)), 0.5f);
this.addLayer(new ItemInHandLayer<IllagerRenderState, IllagerModel<IllagerRenderState>>(this));
}
@Override
public Identifier getTextureLocation(IllagerRenderState state) {
return PILLAGER;
}
@Override
public IllagerRenderState createRenderState() {
return new IllagerRenderState();
}
}