the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "..\Minecraft.World\net.minecraft.world.entity.animal.h"
3#include "OzelotRenderer.h"
4
5OzelotRenderer::OzelotRenderer(Model *model, float shadow) : MobRenderer(model, shadow)
6{
7}
8
9void OzelotRenderer::render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a)
10{
11 MobRenderer::render(_mob, x, y, z, rot, a);
12}
13
14void OzelotRenderer::scale(shared_ptr<Mob> _mob, float a)
15{
16 // 4J - original version used generics and thus had an input parameter of type Blaze rather than shared_ptr<Entity> we have here -
17 // do some casting around instead
18 shared_ptr<Ozelot> mob = dynamic_pointer_cast<Ozelot>(_mob);
19 MobRenderer::scale(mob, a);
20 if (mob->isTame())
21 {
22 glScalef(.8f, .8f, .8f);
23 }
24}