2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "MobRenderer.h"
|
|
|
|
|
|
|
|
|
|
class EnderMan;
|
|
|
|
|
class EndermanModel;
|
|
|
|
|
|
|
|
|
|
class EndermanRenderer : public MobRenderer
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
EndermanModel *model;
|
|
|
|
|
Random random;
|
2026-03-03 03:04:10 +08:00
|
|
|
static ResourceLocation ENDERMAN_EYES_LOCATION;
|
|
|
|
|
static ResourceLocation ENDERMAN_LOCATION;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
EndermanRenderer();
|
|
|
|
|
|
2026-03-03 03:04:10 +08:00
|
|
|
void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a);
|
|
|
|
|
ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
|
|
|
|
|
void additionalRendering(shared_ptr<LivingEntity> _mob, float a);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
protected:
|
2026-03-03 03:04:10 +08:00
|
|
|
int prepareArmor(shared_ptr<LivingEntity> _mob, int layer, float a);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|