aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ChestRenderer.h
blob: 3d9345b9adecd4c27fb07b60481a53b6a832fb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "TileEntityRenderer.h"

class ChestModel;

class ChestRenderer : public TileEntityRenderer
{
private:
	static ResourceLocation CHEST_LARGE_TRAP_LOCATION;
	//static ResourceLocation CHEST_LARGE_XMAS_LOCATION;
	static ResourceLocation CHEST_LARGE_LOCATION;
	static ResourceLocation CHEST_TRAP_LOCATION;
	//static ResourceLocation CHEST_XMAS_LOCATION;
	static ResourceLocation CHEST_LOCATION;

	ChestModel *chestModel;
	ChestModel *largeChestModel;
	boolean xmasTextures;

public:
	ChestRenderer();	
	~ChestRenderer();

	void render(shared_ptr<TileEntity>  _chest, double x, double y, double z, float a, bool setColor, float alpha=1.0f, bool useCompiled = true); // 4J added setColor param
};