diff options
Diffstat (limited to 'Minecraft.Client/WitherSkullRenderer.h')
| -rw-r--r-- | Minecraft.Client/WitherSkullRenderer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Minecraft.Client/WitherSkullRenderer.h b/Minecraft.Client/WitherSkullRenderer.h new file mode 100644 index 00000000..eaf0f005 --- /dev/null +++ b/Minecraft.Client/WitherSkullRenderer.h @@ -0,0 +1,21 @@ +#pragma once +#include "EntityRenderer.h" + +class SkeletonHeadModel; + +class WitherSkullRenderer : public EntityRenderer +{ +private: + static ResourceLocation WITHER_ARMOR_LOCATION; + static ResourceLocation WITHER_LOCATION; + + SkeletonHeadModel *model; + +public: + WitherSkullRenderer(); + void render(shared_ptr<Entity> entity, double x, double y, double z, float rot, float a); + ResourceLocation *getTextureLocation(shared_ptr<Entity> entity); + +private: + float rotlerp(float from, float to, float a); +};
\ No newline at end of file |
