mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 22:13:37 +00:00
18 lines
508 B
C++
18 lines
508 B
C++
#pragma once
|
|
#include "EntityRenderer.h"
|
|
|
|
class ItemFrameRenderer : public EntityRenderer {
|
|
private:
|
|
static ResourceLocation MAP_BACKGROUND_LOCATION;
|
|
Icon* backTexture;
|
|
|
|
public:
|
|
void registerTerrainTextures(IconRegister* iconRegister);
|
|
virtual void render(std::shared_ptr<Entity> _itemframe, double x, double y,
|
|
double z, float rot, float a);
|
|
|
|
private:
|
|
void drawFrame(std::shared_ptr<ItemFrame> itemFrame);
|
|
void drawItem(std::shared_ptr<ItemFrame> entity);
|
|
};
|