Add Pigmen

This commit is contained in:
DeadVoxelx
2026-03-30 00:55:51 -04:00
committed by GitHub
parent aa7aa82ba2
commit fc40833d5a
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "stdafx.h"
#include "PigmanRenderer.h"
#include "..\Minecraft.World\net.minecraft.world.entity.animal.h"
#include "HumanoidModel.h"
ResourceLocation PigmanRenderer::PIGMAN_LOCATION = ResourceLocation(TN_MOB_PIGMAN);
PigmanRenderer::PigmanRenderer() : HumanoidMobRenderer(new HumanoidModel(), .5f, 1.0f)
{
}
void PigmanRenderer::render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a)
{
MobRenderer::render(_mob, x, y, z, rot, a);
}
ResourceLocation *PigmanRenderer::getTextureLocation(shared_ptr<Entity> mob)
{
return &PIGMAN_LOCATION;
}

View File

@@ -0,0 +1,16 @@
#pragma once
#include "HumanoidMobRenderer.h"
class Pigman;
class PigmanRenderer : public HumanoidMobRenderer
{
private:
static ResourceLocation PIGMAN_LOCATION;
public:
PigmanRenderer();
virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a);
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob);
};