2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "EntityRenderer.h"
|
|
|
|
|
|
|
|
|
|
class ExperienceOrbRenderer : public EntityRenderer
|
|
|
|
|
{
|
|
|
|
|
private:
|
2026-03-01 11:00:23 -06:00
|
|
|
static ResourceLocation XP_ORB_LOCATION;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ExperienceOrbRenderer();
|
|
|
|
|
|
2026-03-01 11:00:23 -06:00
|
|
|
virtual void render(shared_ptr<Entity> _orb, double x, double y, double z, float rot, float a);
|
2026-03-01 12:16:08 +08:00
|
|
|
void blit(int x, int y, int sx, int sy, int w, int h);
|
2026-03-01 11:00:23 -06:00
|
|
|
|
|
|
|
|
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|