mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 15:13:37 +00:00
24 lines
649 B
C++
24 lines
649 B
C++
#pragma once
|
|
|
|
class ChestTileEntity;
|
|
class EnderChestTileEntity;
|
|
class Tile;
|
|
|
|
class EntityTileRenderer {
|
|
public:
|
|
static EntityTileRenderer* instance;
|
|
|
|
private:
|
|
std::shared_ptr<ChestTileEntity> chest;
|
|
std::shared_ptr<ChestTileEntity> trappedChest;
|
|
std::shared_ptr<EnderChestTileEntity> enderChest;
|
|
|
|
public:
|
|
EntityTileRenderer();
|
|
void render(Tile* tile, int data, float brightness, float alpha,
|
|
bool setColor = true,
|
|
bool useCompiled =
|
|
true); // 4J - added setColor parameter and alpha for chest
|
|
// in the crafting menu, and added useCompiled
|
|
};
|