BlazeRenderer .java

net.minecraft.client.renderer.entity.BlazeRenderer (class, 33 lines): members: BLAZE_LOCATION, getBlockLightLevel, getTextureLocation, createRenderState.

net.minecraft.client.renderer.entityclass33 linesclientextends MobRenderer<Blaze1.1 KB

API Surface (3)

int getBlockLightLevel(final Blaze entity, final BlockPos blockPos)
Identifier getTextureLocation(final LivingEntityRenderState state)
LivingEntityRenderState createRenderState()

Fields & Constants (1)

BLAZE_LOCATION

String literals (1)

"textures/entity/blaze/blaze.png"

Full Source

BlazeRenderer.java33 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.blaze.BlazeModel;
7
import net.minecraft.client.renderer.entity.state.LivingEntityRenderState;
8
import net.minecraft.core.BlockPos;
9
import net.minecraft.resources.Identifier;
10
import net.minecraft.world.entity.monster.Blaze;
11
12
@Environment(EnvType.CLIENT)
13
public class BlazeRenderer extends MobRenderer<Blaze, LivingEntityRenderState, BlazeModel> {
14
	private static final Identifier BLAZE_LOCATION = Identifier.withDefaultNamespace("textures/entity/blaze/blaze.png");
15
16
	public BlazeRenderer(final EntityRendererProvider.Context context) {
17
		super(context, new BlazeModel(context.bakeLayer(ModelLayers.BLAZE)), 0.5F);
18
	}
19
20
	protected int getBlockLightLevel(final Blaze entity, final BlockPos blockPos) {
21
		return 15;
22
	}
23
24
	@Override
25
	public Identifier getTextureLocation(final LivingEntityRenderState state) {
26
		return BLAZE_LOCATION;
27
	}
28
29
	public LivingEntityRenderState createRenderState() {
30
		return new LivingEntityRenderState();
31
	}
32
}
33

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