chore: format Minecraft.Client

This commit is contained in:
Tropical
2026-03-13 17:10:10 -05:00
parent 33d0737d1d
commit e8424f2000
531 changed files with 67709 additions and 62690 deletions

View File

@@ -2,19 +2,19 @@
#include "SquidRenderer.h"
#include "../../../Minecraft.World/Headers/net.minecraft.world.entity.animal.h"
SquidRenderer::SquidRenderer(Model *model, float shadow) : MobRenderer(model, shadow)
{
SquidRenderer::SquidRenderer(Model* model, float shadow)
: MobRenderer(model, shadow) {}
void SquidRenderer::render(std::shared_ptr<Entity> mob, double x, double y,
double z, float rot, float a) {
MobRenderer::render(mob, x, y, z, rot, a);
}
void SquidRenderer::render(std::shared_ptr<Entity> mob, double x, double y, double z, float rot, float a)
{
MobRenderer::render(mob, x, y, z, rot, a);
}
void SquidRenderer::setupRotations(std::shared_ptr<Mob> _mob, float bob, float bodyRot, float a)
{
// 4J - dynamic cast required because we aren't using templates/generics in our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
void SquidRenderer::setupRotations(std::shared_ptr<Mob> _mob, float bob,
float bodyRot, float a) {
// 4J - dynamic cast required because we aren't using templates/generics in
// our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
float bodyXRot = (mob->xBodyRotO + (mob->xBodyRot - mob->xBodyRotO) * a);
float bodyZRot = (mob->zBodyRotO + (mob->zBodyRot - mob->zBodyRotO) * a);
@@ -26,10 +26,11 @@ void SquidRenderer::setupRotations(std::shared_ptr<Mob> _mob, float bob, float b
glTranslatef(0, -1.2f, 0);
}
float SquidRenderer::getBob(std::shared_ptr<Mob> _mob, float a)
{
// 4J - dynamic cast required because we aren't using templates/generics in our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
float SquidRenderer::getBob(std::shared_ptr<Mob> _mob, float a) {
// 4J - dynamic cast required because we aren't using templates/generics in
// our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
return mob->oldTentacleAngle + (mob->tentacleAngle - mob->oldTentacleAngle) * a;
return mob->oldTentacleAngle +
(mob->tentacleAngle - mob->oldTentacleAngle) * a;
}