mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
33 lines
973 B
C++
33 lines
973 B
C++
#pragma once
|
|
|
|
#include "TileEntityRenderer.h"
|
|
|
|
class SkeletonHeadModel;
|
|
class DragonHeadModel;
|
|
|
|
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;
|
|
static ResourceLocation DRAGON_LOCATION;
|
|
|
|
// note: this head fits most mobs, just change texture
|
|
SkeletonHeadModel *skeletonModel;
|
|
SkeletonHeadModel *zombieModel;
|
|
DragonHeadModel *dragonModel;
|
|
|
|
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, float mouthAnimation = 0.0f);
|
|
};
|