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

@@ -7,67 +7,48 @@
#include "../../../Minecraft.Client/Minecraft.h"
#include "../../../Minecraft.Client/Platform/Common/Colours/ColourTable.h"
void TheEndDimension::init()
{
void TheEndDimension::init() {
biomeSource = new FixedBiomeSource(Biome::sky, 0.5f, 0);
id = 1;
hasCeiling = true;
}
ChunkSource *TheEndDimension::createRandomLevelSource() const
{
return new TheEndLevelRandomLevelSource(level, level->getSeed());
ChunkSource* TheEndDimension::createRandomLevelSource() const {
return new TheEndLevelRandomLevelSource(level, level->getSeed());
}
float TheEndDimension::getTimeOfDay(__int64 time, float a) const
{
return 0.0f;
float TheEndDimension::getTimeOfDay(__int64 time, float a) const {
return 0.0f;
}
float *TheEndDimension::getSunriseColor(float td, float a)
{
return NULL;
float* TheEndDimension::getSunriseColor(float td, float a) { return NULL; }
Vec3* TheEndDimension::getFogColor(float td, float a) const {
int fogColor = Minecraft::GetInstance()->getColourTable()->getColor(
eMinecraftColour_End_Fog_Colour); // 0xa080a0;
float br = Mth::cos(td * PI * 2) * 2 + 0.5f;
if (br < 0.0f) br = 0.0f;
if (br > 1.0f) br = 1.0f;
float r = ((fogColor >> 16) & 0xff) / 255.0f;
float g = ((fogColor >> 8) & 0xff) / 255.0f;
float b = ((fogColor) & 0xff) / 255.0f;
r *= br * 0.0f + 0.15f;
g *= br * 0.0f + 0.15f;
b *= br * 0.0f + 0.15f;
return Vec3::newTemp(r, g, b);
}
Vec3 *TheEndDimension::getFogColor(float td, float a) const
{
int fogColor = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_End_Fog_Colour ); //0xa080a0;
float br = Mth::cos(td * PI * 2) * 2 + 0.5f;
if (br < 0.0f) br = 0.0f;
if (br > 1.0f) br = 1.0f;
bool TheEndDimension::hasGround() { return false; }
float r = ((fogColor >> 16) & 0xff) / 255.0f;
float g = ((fogColor >> 8) & 0xff) / 255.0f;
float b = ((fogColor) & 0xff) / 255.0f;
r *= br * 0.0f + 0.15f;
g *= br * 0.0f + 0.15f;
b *= br * 0.0f + 0.15f;
bool TheEndDimension::mayRespawn() const { return false; }
return Vec3::newTemp(r, g, b);
}
bool TheEndDimension::isNaturalDimension() { return false; }
bool TheEndDimension::hasGround()
{
return false;
}
float TheEndDimension::getCloudHeight() { return 8; }
bool TheEndDimension::mayRespawn() const
{
return false;
}
bool TheEndDimension::isNaturalDimension()
{
return false;
}
float TheEndDimension::getCloudHeight()
{
return 8;
}
bool TheEndDimension::isValidSpawn(int x, int z) const
{
bool TheEndDimension::isValidSpawn(int x, int z) const {
int topTile = level->getTopTile(x, z);
if (topTile == 0) return false;
@@ -75,17 +56,8 @@ bool TheEndDimension::isValidSpawn(int x, int z) const
return Tile::tiles[topTile]->material->blocksMotion();
}
Pos *TheEndDimension::getSpawnPos()
{
return new Pos(100, 50, 0);
}
Pos* TheEndDimension::getSpawnPos() { return new Pos(100, 50, 0); }
bool TheEndDimension::isFoggyAt(int x, int z)
{
return true;
}
bool TheEndDimension::isFoggyAt(int x, int z) { return true; }
int TheEndDimension::getSpawnYPosition()
{
return 50;
}
int TheEndDimension::getSpawnYPosition() { return 50; }