blob: 42dacd012de9cae5b0f13621cb9cb82a209731dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "EntityRenderer.h"
class Painting;
class Random;
class PaintingRenderer : public EntityRenderer
{
private:
Random *random;
static ResourceLocation PAINTING_LOCATION;
public:
PaintingRenderer(); // 4J -added
virtual void render(shared_ptr<Entity> _painting, double x, double y, double z, float rot, float a);
private:
void renderPainting(shared_ptr<Painting> painting, int w, int h, int uo, int vo);
void setBrightness(shared_ptr<Painting> painting, float ss, float ya);
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
};
|