chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -3,27 +3,23 @@
#include "TilePos.h"
#include "../Util/Vec3.h"
TilePos::TilePos(int x, int y, int z)
{
this->x = x;
this->y = y;
this->z = z;
TilePos::TilePos(int x, int y, int z) {
this->x = x;
this->y = y;
this->z = z;
}
// 4J - brought forward from 1.2.3
TilePos::TilePos(Vec3 *p)
{
this->x = Mth::floor(p->x);
this->y = Mth::floor(p->y);
this->z = Mth::floor(p->z);
TilePos::TilePos(Vec3* p) {
this->x = Mth::floor(p->x);
this->y = Mth::floor(p->y);
this->z = Mth::floor(p->z);
}
int TilePos::hash_fnct(const TilePos &k)
{
return k.x * 8976890 + k.y * 981131 + k.z;
int TilePos::hash_fnct(const TilePos& k) {
return k.x * 8976890 + k.y * 981131 + k.z;
}
bool TilePos::eq_test(const TilePos &x, const TilePos &y)
{
return x.x == y.x && x.y == y.y && x.z == y.z;
bool TilePos::eq_test(const TilePos& x, const TilePos& y) {
return x.x == y.x && x.y == y.y && x.z == y.z;
}