mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 21:53:37 +00:00
27 lines
788 B
C++
27 lines
788 B
C++
#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(std::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
|
|
};
|