Spaces:
Build error
Build error
File size: 1,205 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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.state.LivingEntityRenderState;
import net.minecraft.core.BlockPos;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.monster.Blaze;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class BlazeRenderer extends MobRenderer<Blaze, LivingEntityRenderState, BlazeModel> {
private static final ResourceLocation BLAZE_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/blaze.png");
public BlazeRenderer(EntityRendererProvider.Context p_173933_) {
super(p_173933_, new BlazeModel(p_173933_.bakeLayer(ModelLayers.BLAZE)), 0.5F);
}
protected int getBlockLightLevel(Blaze p_113910_, BlockPos p_113911_) {
return 15;
}
@Override
public ResourceLocation getTextureLocation(LivingEntityRenderState p_366152_) {
return BLAZE_LOCATION;
}
public LivingEntityRenderState createRenderState() {
return new LivingEntityRenderState();
}
} |