ZoglinRenderer .java

net.minecraft.client.renderer.entity.ZoglinRenderer (class, 23 lines): members: BABY_ZOGLIN_LOCATION, ZOGLIN_LOCATION, getTextureLocation. imports: Zoglin.

net.minecraft.client.renderer.entityclass23 linesclientextends AbstractHoglinRenderer<Zoglin>967 B

API Surface (1)

Identifier getTextureLocation(final HoglinRenderState state)

Fields & Constants (2)

ZOGLIN_LOCATION
BABY_ZOGLIN_LOCATION

String literals (2)

"textures/entity/hoglin/zoglin.png"
"textures/entity/hoglin/zoglin_baby.png"

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ZoglinRenderer.java23 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.renderer.entity.state.HoglinRenderState;
7
import net.minecraft.resources.Identifier;
8
import net.minecraft.world.entity.monster.Zoglin;
9
10
@Environment(EnvType.CLIENT)
11
public class ZoglinRenderer extends AbstractHoglinRenderer<Zoglin> {
12
	private static final Identifier ZOGLIN_LOCATION = Identifier.withDefaultNamespace("textures/entity/hoglin/zoglin.png");
13
	private static final Identifier BABY_ZOGLIN_LOCATION = Identifier.withDefaultNamespace("textures/entity/hoglin/zoglin_baby.png");
14
15
	public ZoglinRenderer(final EntityRendererProvider.Context context) {
16
		super(context, ModelLayers.ZOGLIN, ModelLayers.ZOGLIN_BABY, 0.7F);
17
	}
18
19
	public Identifier getTextureLocation(final HoglinRenderState state) {
20
		return state.isBaby ? BABY_ZOGLIN_LOCATION : ZOGLIN_LOCATION;
21
	}
22
}
23

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