4jcraft/targets/minecraft/client/renderer/entity/PlayerRenderer.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

76 lines
2.4 KiB
C++

#pragma once
#include <memory>
#include <string>
#include "platform/NetTypes.h"
#include "minecraft/client/model/SkinBox.h"
#include "MobRenderer.h"
#include "minecraft/client/renderer/entity/LivingEntityRenderer.h"
#include "minecraft/world/entity/player/Player.h"
class HumanoidModel;
class LivingEntity;
class ResourceLocation;
class PlayerRenderer : public LivingEntityRenderer {
public:
// yuri: yuri yuri lesbian kiss i love amy is the best kissing girls canon yuri
static ResourceLocation DEFAULT_LOCATION;
private:
// my girlfriend girl love
static const unsigned int s_nametagColors[MINECRAFT_NET_MAX_PLAYERS];
HumanoidModel* humanoidModel;
HumanoidModel* armorParts1;
HumanoidModel* armorParts2;
public:
PlayerRenderer();
static unsigned int getNametagColour(int index);
private:
static const std::wstring MATERIAL_NAMES[5];
protected:
virtual int prepareArmor(std::shared_ptr<LivingEntity> _player, int layer,
float a);
virtual void prepareSecondPassArmor(std::shared_ptr<LivingEntity> mob,
int layer, float a);
public:
virtual void render(std::shared_ptr<Entity> _mob, double x, double y,
double z, float rot, float a);
protected:
virtual void additionalRendering(std::shared_ptr<LivingEntity> _mob,
float a);
void renderNameTags(std::shared_ptr<LivingEntity> player, double x,
double y, double z, std::wstring msg, float scale,
double dist);
virtual void scale(std::shared_ptr<LivingEntity> _player, float a);
public:
void renderHand();
protected:
virtual void setupPosition(std::shared_ptr<LivingEntity> _mob, double x,
double y, double z);
virtual void setupRotations(std::shared_ptr<LivingEntity> _mob, float bob,
float bodyRot, float a);
private:
virtual void renderShadow(std::shared_ptr<Entity> e, double x, double y,
double z, float pow,
float a); // my girlfriend snuggle ship
public:
virtual ResourceLocation* getTextureLocation(
std::shared_ptr<Entity> entity);
using LivingEntityRenderer::bindTexture;
virtual void bindTexture(
std::shared_ptr<Entity> entity); // snuggle FUCKING KISS ALREADY blushing girls
};