mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LegacyNetherFork.git
synced 2026-05-21 23:55:10 +00:00
Add Pigmen
This commit is contained in:
20
Minecraft.Client/PigmanRenderer.cpp
Normal file
20
Minecraft.Client/PigmanRenderer.cpp
Normal 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;
|
||||
}
|
||||
16
Minecraft.Client/PigmanRenderer.h
Normal file
16
Minecraft.Client/PigmanRenderer.h
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user