PillagerRenderer .java

net.minecraft.client.renderer.entity.PillagerRenderer (class, 29 lines): members: PILLAGER, getTextureLocation, createRenderState. imports: Pillager.

net.minecraft.client.renderer.entityclass29 linesclientextends IllagerRenderer<Pillager1.1 KB

API Surface (2)

Identifier getTextureLocation(final IllagerRenderState state)
IllagerRenderState createRenderState()

Fields & Constants (1)

PILLAGER

String literals (1)

"textures/entity/illager/pillager.png"

Full Source

PillagerRenderer.java29 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.entity;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.model.geom.ModelLayers;
6
import net.minecraft.client.model.monster.illager.IllagerModel;
7
import net.minecraft.client.renderer.entity.layers.ItemInHandLayer;
8
import net.minecraft.client.renderer.entity.state.IllagerRenderState;
9
import net.minecraft.resources.Identifier;
10
import net.minecraft.world.entity.monster.illager.Pillager;
11
12
@Environment(EnvType.CLIENT)
13
public class PillagerRenderer extends IllagerRenderer<Pillager, IllagerRenderState> {
14
	private static final Identifier PILLAGER = Identifier.withDefaultNamespace("textures/entity/illager/pillager.png");
15
16
	public PillagerRenderer(final EntityRendererProvider.Context context) {
17
		super(context, new IllagerModel<>(context.bakeLayer(ModelLayers.PILLAGER)), 0.5F);
18
		this.addLayer(new ItemInHandLayer<>(this));
19
	}
20
21
	public Identifier getTextureLocation(final IllagerRenderState state) {
22
		return PILLAGER;
23
	}
24
25
	public IllagerRenderState createRenderState() {
26
		return new IllagerRenderState();
27
	}
28
}
29

Decompiled Minecraft 26.3 source of PillagerRenderer (net/minecraft/client/renderer/entity/PillagerRenderer.java) with Mojang official mappings, stored verbatim on the site.