4jcraft/targets/minecraft/client/renderer/entity/VillagerRenderer.h
2026-04-01 13:27:58 -05:00

31 lines
1 KiB
C++

#pragma once
#include "MobRenderer.h"
class VillagerModel;
class ResourceLocation;
class VillagerRenderer : public MobRenderer {
private:
static ResourceLocation VILLAGER_LOCATION;
static ResourceLocation VILLAGER_FARMER_LOCATION;
static ResourceLocation VILLAGER_LIBRARIAN_LOCATION;
static ResourceLocation VILLAGER_PRIEST_LOCATION;
static ResourceLocation VILLAGER_SMITH_LOCATION;
static ResourceLocation VILLAGER_BUTCHER_LOCATION;
protected:
VillagerModel* villagerModel;
public:
VillagerRenderer();
virtual void render(std::shared_ptr<Entity> mob, double x, double y,
double z, float rot, float a);
virtual ResourceLocation* getTextureLocation(std::shared_ptr<Entity> _mob);
protected:
virtual int prepareArmor(std::shared_ptr<LivingEntity> villager, int layer,
float a);
virtual void additionalRendering(std::shared_ptr<LivingEntity> mob,
float a);
virtual void scale(std::shared_ptr<LivingEntity> player, float a);
};