mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 23:48:12 +05:00
19 lines
494 B
C++
19 lines
494 B
C++
#pragma once
|
|
#include "EntityRenderer.h"
|
|
|
|
class Item;
|
|
|
|
class ItemSpriteRenderer : public EntityRenderer
|
|
{
|
|
private:
|
|
Item *sourceItem;
|
|
int sourceItemAuxValue;
|
|
public:
|
|
ItemSpriteRenderer(Item *sourceItem, int sourceItemAuxValue = 0);
|
|
//ItemSpriteRenderer(Item *icon);
|
|
virtual void render(shared_ptr<Entity> e, double x, double y, double z, float rot, float a);
|
|
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
|
|
|
|
private:
|
|
void renderIcon(Tesselator *t, Icon *icon);
|
|
}; |