minecraft-src/net/minecraft/client/renderer/entity/BlazeRenderer.java
2025-07-04 01:41:11 +03:00

29 lines
957 B
Java

package net.minecraft.client.renderer.entity;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.model.BlazeModel;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.core.BlockPos;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.monster.Blaze;
@Environment(EnvType.CLIENT)
public class BlazeRenderer extends MobRenderer<Blaze, BlazeModel<Blaze>> {
private static final ResourceLocation BLAZE_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/blaze.png");
public BlazeRenderer(EntityRendererProvider.Context context) {
super(context, new BlazeModel<>(context.bakeLayer(ModelLayers.BLAZE)), 0.5F);
}
protected int getBlockLightLevel(Blaze entity, BlockPos pos) {
return 15;
}
/**
* Returns the location of an entity's texture.
*/
public ResourceLocation getTextureLocation(Blaze entity) {
return BLAZE_LOCATION;
}
}