39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.minecraft.client.model.BlazeModel;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.client.renderer.entity.EntityRendererProvider;
|
|
import net.minecraft.client.renderer.entity.MobRenderer;
|
|
import net.minecraft.client.renderer.entity.state.LivingEntityRenderState;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.resources.Identifier;
|
|
import net.minecraft.world.entity.monster.Blaze;
|
|
|
|
public class BlazeRenderer
|
|
extends MobRenderer<Blaze, LivingEntityRenderState, BlazeModel> {
|
|
private static final Identifier BLAZE_LOCATION = Identifier.withDefaultNamespace("textures/entity/blaze.png");
|
|
|
|
public BlazeRenderer(EntityRendererProvider.Context context) {
|
|
super(context, new BlazeModel(context.bakeLayer(ModelLayers.BLAZE)), 0.5f);
|
|
}
|
|
|
|
@Override
|
|
protected int getBlockLightLevel(Blaze entity, BlockPos blockPos) {
|
|
return 15;
|
|
}
|
|
|
|
@Override
|
|
public Identifier getTextureLocation(LivingEntityRenderState state) {
|
|
return BLAZE_LOCATION;
|
|
}
|
|
|
|
@Override
|
|
public LivingEntityRenderState createRenderState() {
|
|
return new LivingEntityRenderState();
|
|
}
|
|
}
|
|
|