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

@@ -5,25 +5,25 @@
#include "../../../Minecraft.World/Headers/net.minecraft.world.level.material.h"
#include "../../../Minecraft.World/Headers/net.minecraft.world.level.tile.h"
WaterDropParticle::WaterDropParticle(Level *level, double x, double y, double z) : Particle(level, x, y, z, 0, 0, 0)
{
WaterDropParticle::WaterDropParticle(Level* level, double x, double y, double z)
: Particle(level, x, y, z, 0, 0, 0) {
xd *= 0.3f;
yd = (float) Math::random() * 0.2f + 0.1f;
yd = (float)Math::random() * 0.2f + 0.1f;
zd *= 0.3f;
rCol = 1.0f;
gCol = 1.0f;
bCol = 1.0f;
setMiscTex(16+3+random->nextInt(4));
setMiscTex(16 + 3 + random->nextInt(4));
this->setSize(0.01f, 0.01f);
gravity = 0.06f;
noPhysics = true; // 4J - optimisation - do we really need collision on these? its really slow...
lifetime = (int) (8 / (Math::random() * 0.8 + 0.2));
noPhysics = true; // 4J - optimisation - do we really need collision on
// these? its really slow...
lifetime = (int)(8 / (Math::random() * 0.8 + 0.2));
}
void WaterDropParticle::tick()
{
void WaterDropParticle::tick() {
xo = x;
yo = y;
zo = z;
@@ -36,19 +36,19 @@ void WaterDropParticle::tick()
if (lifetime-- <= 0) remove();
if (onGround)
{
if (onGround) {
if (Math::random() < 0.5) remove();
xd *= 0.7f;
zd *= 0.7f;
}
Material *m = level->getMaterial(Mth::floor(x), Mth::floor(y), Mth::floor(z));
if (m->isLiquid() || m->isSolid())
{
double y0 = Mth::floor(y) + 1 - LiquidTile::getHeight(level->getData(Mth::floor(x), Mth::floor(y), Mth::floor(z)));
if (y < y0)
{
Material* m =
level->getMaterial(Mth::floor(x), Mth::floor(y), Mth::floor(z));
if (m->isLiquid() || m->isSolid()) {
double y0 = Mth::floor(y) + 1 -
LiquidTile::getHeight(level->getData(
Mth::floor(x), Mth::floor(y), Mth::floor(z)));
if (y < y0) {
remove();
}
}