mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-18 19:50:00 +01:00
Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
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);
|
|
};
|