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

@@ -6,37 +6,41 @@
#include "../../../Minecraft.World/Util/Mth.h"
#include "../../../Minecraft.World/Headers/net.minecraft.world.level.material.h"
SuspendedParticle::SuspendedParticle(Level *level, double x, double y, double z, double xa, double ya, double za) : Particle(level,x, y - 2 / 16.0f, z, xa, ya, za)
{
// 4J-JEV: Set particle colour from colour-table.
unsigned int col = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Particle_Suspend );
rCol = ( (col>>16)&0xFF )/255.0f, gCol = ( (col>>8)&0xFF )/255.0, bCol = ( col&0xFF )/255.0;
SuspendedParticle::SuspendedParticle(Level* level, double x, double y, double z,
double xa, double ya, double za)
: Particle(level, x, y - 2 / 16.0f, z, xa, ya, za) {
// 4J-JEV: Set particle colour from colour-table.
unsigned int col = Minecraft::GetInstance()->getColourTable()->getColor(
eMinecraftColour_Particle_Suspend);
rCol = ((col >> 16) & 0xFF) / 255.0f, gCol = ((col >> 8) & 0xFF) / 255.0,
bCol = (col & 0xFF) / 255.0;
//rCol = 0.4f;
//gCol = 0.4f;
//bCol = 0.7f;
// rCol = 0.4f;
// gCol = 0.4f;
// bCol = 0.7f;
setMiscTex(0);
this->setSize(0.01f, 0.01f);
setMiscTex(0);
this->setSize(0.01f, 0.01f);
size = size * (random->nextFloat() * 0.6f + 0.2f);
size = size * (random->nextFloat() * 0.6f + 0.2f);
xd = xa * 0.0f;
yd = ya * 0.0f;
zd = za * 0.0f;
xd = xa * 0.0f;
yd = ya * 0.0f;
zd = za * 0.0f;
lifetime = (int) (16 / (Math::random() * 0.8 + 0.2));
lifetime = (int)(16 / (Math::random() * 0.8 + 0.2));
}
void SuspendedParticle::tick()
{
xo = x;
yo = y;
zo = z;
void SuspendedParticle::tick() {
xo = x;
yo = y;
zo = z;
move(xd, yd, zd);
move(xd, yd, zd);
if (level->getMaterial(Mth::floor(x), Mth::floor(y), Mth::floor(z)) != Material::water) remove();
if (level->getMaterial(Mth::floor(x), Mth::floor(y), Mth::floor(z)) !=
Material::water)
remove();
if (lifetime-- <= 0) remove();
if (lifetime-- <= 0) remove();
}