#include "stdafx.h" #include "TheEndDimension.h" #include "FixedBiomeSource.h" #include "net.minecraft.world.level.levelgen.h" #include "net.minecraft.world.level.h" #include "net.minecraft.world.level.tile.h" #include "..\Minecraft.Client\Minecraft.h" #include "..\Minecraft.Client\Common\Colours\ColourTable.h" 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()); } float TheEndDimension::getTimeOfDay(int64_t time, float a) const { return 0.0f; } float *TheEndDimension::getSunriseColor(float td, float a) { return nullptr; } bool TheEndDimension::hasGround() { return false; } bool TheEndDimension::mayRespawn() const { return false; } bool TheEndDimension::isNaturalDimension() { return false; } float TheEndDimension::getCloudHeight() { return 8; } bool TheEndDimension::isValidSpawn(int x, int z) const { int topTile = level->getTopTile(x, z); if (topTile == 0) return false; return Tile::tiles[topTile]->material->blocksMotion(); } Pos *TheEndDimension::getSpawnPos() { return new Pos(100, 50, 0); } int TheEndDimension::getSpawnYPosition() { return 50; } // TU30 int TheEndDimension::getBlockLightColour() { return Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_BlockLight_EndDimension ); }