mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-30 15:43:38 +00:00
31 lines
934 B
C++
31 lines
934 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(std::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 std::wstring& extra);
|
|
};
|