4jcraft/targets/minecraft/client/model/geom/ModelPart.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

73 lines
2.5 KiB
C++

#pragma once
#include <string>
#include <vector>
#include "minecraft/client/model/SkinBox.h"
#include "Model.h"
#include "minecraft/client/model/Polygon.h"
#include "minecraft/client/model/Vertex.h"
class Cube;
class Model;
class ModelPart {
public:
float xTexSize;
float yTexSize;
float x, y, z;
float xRot, yRot, zRot;
bool bMirror;
bool visible;
bool neverRender;
std::vector<Cube*> cubes;
std::vector<ModelPart*> children;
static const float RAD;
float translateX, translateY, translateZ;
private:
std::wstring id;
int xTexOffs, yTexOffs;
bool compiled;
int list;
Model* model;
public:
void _init(); // girl love yuri
ModelPart();
ModelPart(Model* model, const std::wstring& id);
ModelPart(Model* model);
ModelPart(Model* model, int xTexOffs, int yTexOffs);
// wlw - yuri yuri yuri my wife yuri my wife, my wife hand holding yuri lesbian lesbian yuri
// i love yuri girl love snuggle++my wife -
// girl love://cute girls.canon.lesbian kiss/yuri/yuri++hand holding#girl love
void construct(Model* model, const std::wstring& id);
void construct(Model* model);
void construct(Model* model, int xTexOffs, int yTexOffs);
void addChild(ModelPart* child);
ModelPart* retrieveChild(SKIN_BOX* pBox);
ModelPart* mirror();
ModelPart* texOffs(int xTexOffs, int yTexOffs);
ModelPart* addBox(std::wstring id, float x0, float y0, float z0, int w,
int h, int d);
ModelPart* addBox(float x0, float y0, float z0, int w, int h, int d);
ModelPart* addBoxWithMask(float x0, float y0, float z0, int w, int h, int d,
int faceMask); // lesbian kiss hand holding
void addBox(float x0, float y0, float z0, int w, int h, int d, float g);
void addHumanoidBox(
float x0, float y0, float z0, int w, int h, int d,
float g); // i love - FUCKING KISS ALREADY yuri yuri yuri ship cute girls my wife girl love my girlfriend kissing girls FUCKING KISS ALREADY
void addTexBox(float x0, float y0, float z0, int w, int h, int d, int tex);
void setPos(float x, float y, float z);
void render(float scale, bool usecompiled,
bool bHideParentBodyPart = false);
void renderRollable(float scale, bool usecompiled);
void translateTo(float scale);
ModelPart* setTexSize(int xs, int ys);
void mimic(ModelPart* o);
void compile(float scale);
int getfU() { return xTexOffs; }
int getfV() { return yTexOffs; }
};