b3feddfef3
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
30 lines
848 B
C++
30 lines
848 B
C++
#pragma once
|
|
|
|
#include "TileEntityRenderer.h"
|
|
|
|
class SkeletonHeadModel;
|
|
|
|
class SkullTileRenderer : public TileEntityRenderer
|
|
{
|
|
public:
|
|
static SkullTileRenderer *instance;
|
|
|
|
private:
|
|
static ResourceLocation SKELETON_LOCATION;
|
|
static ResourceLocation WITHER_SKELETON_LOCATION;
|
|
static ResourceLocation ZOMBIE_LOCATION;
|
|
static ResourceLocation CREEPER_LOCATION;
|
|
|
|
// note: this head fits most mobs, just change texture
|
|
SkeletonHeadModel *skeletonModel;
|
|
SkeletonHeadModel *zombieModel;
|
|
|
|
public:
|
|
SkullTileRenderer();
|
|
~SkullTileRenderer();
|
|
|
|
void render(shared_ptr<TileEntity> skull, double x, double y, double z, float a, bool setColor, float alpha, bool useCompiled = true);
|
|
void init(TileEntityRenderDispatcher *tileEntityRenderDispatcher);
|
|
void renderSkull(float x, float y, float z, int face, float rot, int type, const wstring &extra);
|
|
};
|