mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-01 04:26:45 +00:00
20 lines
589 B
C++
20 lines
589 B
C++
#pragma once
|
|
#include "MobRenderer.h"
|
|
|
|
class PigRenderer : public MobRenderer {
|
|
private:
|
|
static ResourceLocation PIG_LOCATION;
|
|
static ResourceLocation SADDLE_LOCATION;
|
|
|
|
public:
|
|
PigRenderer(Model* model, Model* armor, float shadow);
|
|
|
|
protected:
|
|
virtual int prepareArmor(std::shared_ptr<LivingEntity> _pig, int layer,
|
|
float a);
|
|
|
|
public:
|
|
virtual void render(std::shared_ptr<Entity> mob, double x, double y,
|
|
double z, float rot, float a);
|
|
virtual ResourceLocation* getTextureLocation(std::shared_ptr<Entity> mob);
|
|
}; |