package net.minecraft.client.renderer.entity;

import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Mob;
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.client.model.VexModel;
import net.minecraft.world.entity.monster.Vex;

public class VexRenderer extends HumanoidMobRenderer<Vex, VexModel> {
    private static final ResourceLocation VEX_LOCATION;
    private static final ResourceLocation VEX_CHARGING_LOCATION;
    
    public VexRenderer(final EntityRenderDispatcher dvf) {
        super(dvf, new VexModel(), 0.3f);
    }
    
    protected int getBlockLightLevel(final Vex axl, final float float2) {
        return 15;
    }
    
    @Override
    public ResourceLocation getTextureLocation(final Vex axl) {
        if (axl.isCharging()) {
            return VexRenderer.VEX_CHARGING_LOCATION;
        }
        return VexRenderer.VEX_LOCATION;
    }
    
    @Override
    protected void scale(final Vex axl, final PoseStack cyl, final float float3) {
        cyl.scale(0.4f, 0.4f, 0.4f);
    }
    
    static {
        VEX_LOCATION = new ResourceLocation("textures/entity/illager/vex.png");
        VEX_CHARGING_LOCATION = new ResourceLocation("textures/entity/illager/vex_charging.png");
    }
}
