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

@@ -1,25 +1,19 @@
#include "../../Platform/stdafx.h"
#include "../../Headers/net.minecraft.world.level.newbiome.layer.h"
IslandLayer::IslandLayer(__int64 seedMixup) : Layer(seedMixup)
{
}
IslandLayer::IslandLayer(__int64 seedMixup) : Layer(seedMixup) {}
intArray IslandLayer::getArea(int xo, int yo, int w, int h)
{
intArray result = IntCache::allocate(w * h);
for (int y = 0; y < h; y++)
{
for (int x = 0; x < w; x++)
{
initRandom(xo + x, yo + y);
result[x + y * w] = (nextRandom(10) == 0) ? 1 : 0;
}
}
// if (0, 0) is located here, place an island
if (xo > -w && xo <= 0 && yo > -h && yo <= 0)
{
result[-xo + -yo * w] = 1;
}
return result;
intArray IslandLayer::getArea(int xo, int yo, int w, int h) {
intArray result = IntCache::allocate(w * h);
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
initRandom(xo + x, yo + y);
result[x + y * w] = (nextRandom(10) == 0) ? 1 : 0;
}
}
// if (0, 0) is located here, place an island
if (xo > -w && xo <= 0 && yo > -h && yo <= 0) {
result[-xo + -yo * w] = 1;
}
return result;
}