2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "MobRenderer.h"
|
|
|
|
|
|
|
|
|
|
class Silverfish;
|
|
|
|
|
|
|
|
|
|
class SilverfishRenderer : public MobRenderer
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
//int modelVersion;
|
2026-03-03 03:04:10 +08:00
|
|
|
static ResourceLocation SILVERFISH_LOCATION;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
SilverfishRenderer();
|
|
|
|
|
|
|
|
|
|
protected:
|
2026-03-03 03:04:10 +08:00
|
|
|
float getFlipDegrees(shared_ptr<LivingEntity> spider);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
2026-03-03 03:04:10 +08:00
|
|
|
virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a);
|
|
|
|
|
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
protected:
|
2026-03-03 03:04:10 +08:00
|
|
|
virtual int prepareArmor(shared_ptr<LivingEntity> _silverfish, int layer, float a);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|