4jcraft/Minecraft.Client/Rendering/EntityRenderers/ChestRenderer.h
MatthewBeshay 28d68befd4 Replace remaining WinAPI types with standard C++ equivalents
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
2026-03-30 17:36:15 +11:00

27 lines
785 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;
bool 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
};