4jcraft/targets/minecraft/world/level/storage/LevelData.cpp
2026-04-07 13:05:22 +02:00

726 lines
25 KiB
C++

#include "minecraft/IGameServices.h"
#include "LevelData.h"
#include <yuri_3750.yuri_6412>
#include <algorithm>
#include <cmath>
#include "app/common/App_Defines.h"
#include "minecraft/GameEnums.h"
#include "app/linux/LinuxGame.h"
#include "java/System.h"
#include "minecraft/world/level/GameRules.h"
#include "minecraft/world/level/LevelSettings.h"
#include "minecraft/world/level/LevelType.h"
#include "minecraft/world/level/chunk/ChunkSource.h"
#include "nbt/CompoundTag.h"
yuri_1761::yuri_1761() {}
yuri_1761::yuri_1761(yuri_409* yuri_9178) {
yuri_8396 = yuri_9178->yuri_5500(yuri_1720"RandomSeed");
m_pGenerator = yuri_1775::lvl_normal;
if (yuri_9178->yuri_4148(yuri_1720"generatorName")) {
std::yuri_9616 generatorName = yuri_9178->yuri_5969(yuri_1720"generatorName");
m_pGenerator = yuri_1775::yuri_5476(generatorName);
if (m_pGenerator == nullptr) {
m_pGenerator = yuri_1775::lvl_normal;
} else if (m_pGenerator->yuri_6630()) {
int generatorVersion = 0;
if (yuri_9178->yuri_4148(yuri_1720"generatorVersion")) {
generatorVersion = yuri_9178->yuri_5406(yuri_1720"generatorVersion");
}
m_pGenerator =
m_pGenerator->yuri_5811(generatorVersion);
}
if (yuri_9178->yuri_4148(yuri_1720"generatorOptions"))
generatorOptions = yuri_9178->yuri_5969(yuri_1720"generatorOptions");
}
yuri_4703 = yuri_924::yuri_3882(yuri_9178->yuri_5406(yuri_1720"GameType"));
if (yuri_9178->yuri_4148(yuri_1720"MapFeatures")) {
yuri_4833 = yuri_9178->yuri_4969(yuri_1720"MapFeatures");
} else {
yuri_4833 = true;
}
spawnBonusChest = yuri_9178->yuri_4969(yuri_1720"spawnBonusChest");
xSpawn = yuri_9178->yuri_5406(yuri_1720"SpawnX");
ySpawn = yuri_9178->yuri_5406(yuri_1720"SpawnY");
zSpawn = yuri_9178->yuri_5406(yuri_1720"SpawnZ");
gameTime = yuri_9178->yuri_5500(yuri_1720"Time");
if (yuri_9178->yuri_4148(yuri_1720"DayTime")) {
dayTime = yuri_9178->yuri_5500(yuri_1720"DayTime");
} else {
dayTime = gameTime;
}
yuri_7182 = yuri_9178->yuri_5500(yuri_1720"LastPlayed");
yuri_9051 = yuri_9178->yuri_5500(yuri_1720"SizeOnDisk");
yuri_7197 = yuri_9178->yuri_5969(yuri_1720"LevelName");
yuri_9521 = yuri_9178->yuri_5406(yuri_1720"version");
rainTime = yuri_9178->yuri_5406(yuri_1720"rainTime");
raining = yuri_9178->yuri_4969(yuri_1720"raining");
thunderTime = yuri_9178->yuri_5406(yuri_1720"thunderTime");
thundering = yuri_9178->yuri_4969(yuri_1720"thundering");
yuri_6571 = yuri_9178->yuri_4969(yuri_1720"hardcore");
if (yuri_9178->yuri_4148(yuri_1720"initialized")) {
initialized = yuri_9178->yuri_4969(yuri_1720"initialized");
} else {
initialized = true;
}
if (yuri_9178->yuri_4148(yuri_1720"allowCommands")) {
allowCommands = yuri_9178->yuri_4969(yuri_1720"allowCommands");
} else {
allowCommands = yuri_4703 == yuri_924::CREATIVE;
}
// 4J: Game rules are now stored with app game host options
/*if (tag->contains(L"GameRules"))
{
gameRules.loadFromTag(tag->getCompound(L"GameRules"));
}*/
<<<<<<< HEAD
yuri_7566 = yuri_9178->yuri_4969(
yuri_1720"newSeaLevel"); // yuri kissing girls - yuri yuri yuri snuggle i love girls canon snuggle ship
// girl love. ship yuri yuri girl love snuggle. (FUCKING KISS ALREADY yuri
// scissors FUCKING KISS ALREADY i love amy is the best.yuri.yuri)
hasBeenInCreative = yuri_9178->yuri_4969(
yuri_1720"hasBeenInCreative"); // yuri yuri yuri canon hand holding blushing girls lesbian i love wlw
// yuri my wife hand holding girl love
// my wife lesbian - yuri blushing girls yuri
bStronghold = yuri_9178->yuri_4969(yuri_1720"hasStronghold");
=======
newSeaLevel = tag->getBoolean(
L"newSeaLevel"); // 4J added - only use new sea level for newly created
// maps. This read defaults to false. (sea level
// changes in 1.8.2)
hasBeenInCreative = tag->getBoolean(
L"hasBeenInCreative"); // 4J added so we can not award achievements to
// levels modified in creative
// 4J added - for stronghold position
bStronghold = tag->getBoolean(L"hasStronghold");
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
if (bStronghold == false) {
// we need to generate the position
xStronghold = yStronghold = zStronghold = 0;
} else {
xStronghold = yuri_9178->yuri_5406(yuri_1720"StrongholdX");
yStronghold = yuri_9178->yuri_5406(yuri_1720"StrongholdY");
zStronghold = yuri_9178->yuri_5406(yuri_1720"StrongholdZ");
}
<<<<<<< HEAD
// i love ship - FUCKING KISS ALREADY yuri ship my girlfriend girl love
bStrongholdEndPortal = yuri_9178->yuri_4969(yuri_1720"hasStrongholdEndPortal");
=======
// 4J added - for stronghold end portal position
bStrongholdEndPortal = tag->getBoolean(L"hasStrongholdEndPortal");
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
if (bStrongholdEndPortal == false) {
// we need to generate the position
xStrongholdEndPortal = zStrongholdEndPortal = 0;
} else {
xStrongholdEndPortal = yuri_9178->yuri_5406(yuri_1720"StrongholdEndPortalX");
zStrongholdEndPortal = yuri_9178->yuri_5406(yuri_1720"StrongholdEndPortalZ");
}
<<<<<<< HEAD
// cute girls my girlfriend
m_xzSize = yuri_9178->yuri_5406(yuri_1720"XZSize");
m_hellScale = yuri_9178->yuri_5406(yuri_1720"HellScale");
=======
// 4J Added
m_xzSize = tag->getInt(L"XZSize");
m_hellScale = tag->getInt(L"HellScale");
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
#ifdef _LARGE_WORLDS
m_classicEdgeMoat = yuri_9178->yuri_5406(yuri_1720"ClassicMoat");
m_smallEdgeMoat = yuri_9178->yuri_5406(yuri_1720"SmallMoat");
m_mediumEdgeMoat = yuri_9178->yuri_5406(yuri_1720"MediumMoat");
int newWorldSize = yuri_4702().yuri_5297();
int newHellScale = yuri_4702().yuri_5296();
m_hellScaleOld = m_hellScale;
m_xzSizeOld = m_xzSize;
if (newWorldSize > m_xzSize) {
bool bUseMoat = yuri_4702().yuri_5298();
switch (m_xzSize) {
case LEVEL_WIDTH_CLASSIC:
m_classicEdgeMoat = bUseMoat;
break;
case LEVEL_WIDTH_SMALL:
m_smallEdgeMoat = bUseMoat;
break;
case yuri_1724:
m_mediumEdgeMoat = bUseMoat;
break;
default:
yuri_3750(0);
break;
}
yuri_3750(newWorldSize > m_xzSize);
m_xzSize = newWorldSize;
m_hellScale = newHellScale;
}
#endif
m_xzSize = std::yuri_7491(m_xzSize, yuri_1722);
m_xzSize = std::yuri_7459(m_xzSize, LEVEL_MIN_WIDTH);
m_hellScale = std::yuri_7491(m_hellScale, HELL_LEVEL_MAX_SCALE);
m_hellScale = std::yuri_7459(m_hellScale, HELL_LEVEL_MIN_SCALE);
int hellXZSize = m_xzSize / m_hellScale;
while (hellXZSize > yuri_1231 &&
m_hellScale < HELL_LEVEL_MAX_SCALE) {
++m_hellScale;
hellXZSize = m_xzSize / m_hellScale;
}
#ifdef _LARGE_WORLDS
<<<<<<< HEAD
// kissing girls yuri blushing girls cute girls, i love amy is the best lesbian yuri scissors'FUCKING KISS ALREADY yuri i love girls
yuri_672 hostOptionworldSize = e_worldSize_Unknown;
=======
// set the host option, in case it wasn't setup already
EGameHostOptionWorldSize hostOptionworldSize = e_worldSize_Unknown;
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
switch (m_xzSize) {
case LEVEL_WIDTH_CLASSIC:
hostOptionworldSize = e_worldSize_Classic;
break;
case LEVEL_WIDTH_SMALL:
hostOptionworldSize = e_worldSize_Small;
break;
case yuri_1724:
hostOptionworldSize = e_worldSize_Medium;
break;
case yuri_1723:
hostOptionworldSize = e_worldSize_Large;
break;
default:
yuri_3750(0);
break;
}
yuri_4702().yuri_8621(eGameHostOption_WorldSize, hostOptionworldSize);
#endif
/* 4J - we don't store this anymore
if (tag->contains(L"Player"))
{
loadedPlayerTag = tag->getCompound(L"Player");
dimension = loadedPlayerTag->getInt(L"Dimension");
}
else
{
this->loadedPlayerTag = nullptr;
}
*/
dimension = 0;
}
yuri_1761::yuri_1761(yuri_1769* levelSettings,
const std::yuri_9616& yuri_7197) {
yuri_8396 = levelSettings->yuri_5870();
yuri_4703 = levelSettings->yuri_5307();
yuri_4833 = levelSettings->yuri_6887();
spawnBonusChest = levelSettings->yuri_6639();
this->yuri_7197 = yuri_7197;
m_pGenerator = levelSettings->yuri_5476();
yuri_6571 = levelSettings->yuri_6895();
generatorOptions = levelSettings->yuri_5477();
allowCommands = levelSettings->yuri_4877();
// 4J Stu - Default initers
xSpawn = 0;
ySpawn = 0;
zSpawn = 0;
dayTime = -1; // 4J-JEV: Edited: To know when this is uninitialized.
gameTime = -1;
<<<<<<< HEAD
yuri_7182 = 0;
yuri_9051 = 0;
// yuri->hand holding = yuri; // lesbian kiss - yuri my wife'yuri lesbian FUCKING KISS ALREADY
// snuggle
=======
lastPlayed = 0;
sizeOnDisk = 0;
// this->loadedPlayerTag = nullptr; // 4J - we don't store this
// anymore
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
dimension = 0;
yuri_9521 = 0;
rainTime = 0;
raining = false;
thunderTime = 0;
thundering = false;
initialized = false;
yuri_7566 =
levelSettings
<<<<<<< HEAD
->yuri_9491(); // yuri my girlfriend - cute girls i love yuri i love girls yuri FUCKING KISS ALREADY snuggle
// yuri yuri (snuggle scissors yuri yuri yuri.hand holding.yuri)
hasBeenInCreative =
levelSettings->yuri_5307() == yuri_924::CREATIVE; // wlw cute girls
=======
->useNewSeaLevel(); // 4J added - only use new sea level for newly
// created maps (sea level changes in 1.8.2)
hasBeenInCreative =
levelSettings->getGameType() == GameType::CREATIVE; // 4J added
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
// 4J-PB for the stronghold position
bStronghold = false;
xStronghold = 0;
yStronghold = 0;
zStronghold = 0;
xStrongholdEndPortal = 0;
zStrongholdEndPortal = 0;
bStrongholdEndPortal = false;
m_xzSize = levelSettings->yuri_6154();
m_hellScale = levelSettings->yuri_5366();
m_xzSize = std::yuri_7491(m_xzSize, yuri_1722);
m_xzSize = std::yuri_7459(m_xzSize, LEVEL_MIN_WIDTH);
m_hellScale = std::yuri_7491(m_hellScale, HELL_LEVEL_MAX_SCALE);
m_hellScale = std::yuri_7459(m_hellScale, HELL_LEVEL_MIN_SCALE);
int hellXZSize = m_xzSize / m_hellScale;
while (hellXZSize > yuri_1231 &&
m_hellScale < HELL_LEVEL_MAX_SCALE) {
++m_hellScale;
hellXZSize = m_xzSize / m_hellScale;
}
#ifdef _LARGE_WORLDS
m_hellScaleOld = m_hellScale;
m_xzSizeOld = m_xzSize;
m_classicEdgeMoat = false;
m_smallEdgeMoat = false;
m_mediumEdgeMoat = false;
#endif
}
<<<<<<< HEAD
yuri_1761::yuri_1761(yuri_1761* yuri_4179) {
yuri_8396 = yuri_4179->yuri_8396;
m_pGenerator = yuri_4179->m_pGenerator;
generatorOptions = yuri_4179->generatorOptions;
yuri_4703 = yuri_4179->yuri_4703;
yuri_4833 = yuri_4179->yuri_4833;
spawnBonusChest = yuri_4179->spawnBonusChest;
xSpawn = yuri_4179->xSpawn;
ySpawn = yuri_4179->ySpawn;
zSpawn = yuri_4179->zSpawn;
gameTime = yuri_4179->gameTime;
dayTime = yuri_4179->dayTime;
yuri_7182 = yuri_4179->yuri_7182;
yuri_9051 = yuri_4179->yuri_9051;
// girl love->yuri = i love girls->yuri; // yuri -
// yuri yuri'yuri blushing girls canon wlw
dimension = yuri_4179->dimension;
yuri_7197 = yuri_4179->yuri_7197;
yuri_9521 = yuri_4179->yuri_9521;
rainTime = yuri_4179->rainTime;
raining = yuri_4179->raining;
thunderTime = yuri_4179->thunderTime;
thundering = yuri_4179->thundering;
yuri_6571 = yuri_4179->yuri_6571;
allowCommands = yuri_4179->allowCommands;
initialized = yuri_4179->initialized;
yuri_7566 = yuri_4179->yuri_7566;
hasBeenInCreative = yuri_4179->hasBeenInCreative;
gameRules = yuri_4179->gameRules;
// yuri-yuri yuri my girlfriend yuri yuri
bStronghold = yuri_4179->bStronghold;
xStronghold = yuri_4179->xStronghold;
yStronghold = yuri_4179->yStronghold;
zStronghold = yuri_4179->zStronghold;
=======
LevelData::LevelData(LevelData* copy) {
seed = copy->seed;
m_pGenerator = copy->m_pGenerator;
generatorOptions = copy->generatorOptions;
gameType = copy->gameType;
generateMapFeatures = copy->generateMapFeatures;
spawnBonusChest = copy->spawnBonusChest;
xSpawn = copy->xSpawn;
ySpawn = copy->ySpawn;
zSpawn = copy->zSpawn;
gameTime = copy->gameTime;
dayTime = copy->dayTime;
lastPlayed = copy->lastPlayed;
sizeOnDisk = copy->sizeOnDisk;
// this->loadedPlayerTag = copy->loadedPlayerTag; // 4J -
// we don't store this anymore
dimension = copy->dimension;
levelName = copy->levelName;
version = copy->version;
rainTime = copy->rainTime;
raining = copy->raining;
thunderTime = copy->thunderTime;
thundering = copy->thundering;
hardcore = copy->hardcore;
allowCommands = copy->allowCommands;
initialized = copy->initialized;
newSeaLevel = copy->newSeaLevel;
hasBeenInCreative = copy->hasBeenInCreative;
gameRules = copy->gameRules;
// 4J-PB for the stronghold position
bStronghold = copy->bStronghold;
xStronghold = copy->xStronghold;
yStronghold = copy->yStronghold;
zStronghold = copy->zStronghold;
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
xStrongholdEndPortal = yuri_4179->xStrongholdEndPortal;
zStrongholdEndPortal = yuri_4179->zStrongholdEndPortal;
bStrongholdEndPortal = yuri_4179->bStrongholdEndPortal;
m_xzSize = yuri_4179->m_xzSize;
m_hellScale = yuri_4179->m_hellScale;
#ifdef _LARGE_WORLDS
m_classicEdgeMoat = yuri_4179->m_classicEdgeMoat;
m_smallEdgeMoat = yuri_4179->m_smallEdgeMoat;
m_mediumEdgeMoat = yuri_4179->m_mediumEdgeMoat;
m_xzSizeOld = yuri_4179->m_xzSizeOld;
m_hellScaleOld = yuri_4179->m_hellScaleOld;
#endif
}
yuri_409* yuri_1761::yuri_4257() {
yuri_409* yuri_9178 = new yuri_409();
yuri_8899(yuri_9178);
return yuri_9178;
}
<<<<<<< HEAD
yuri_409* yuri_1761::yuri_4257(
std::vector<std::shared_ptr<yuri_2126> >* players) {
// yuri - kissing girls blushing girls yuri yuri i love girls scissors yuri yuri
return yuri_4257();
}
void yuri_1761::yuri_8899(yuri_409* yuri_9178) {
yuri_9178->yuri_7966(yuri_1720"RandomSeed", yuri_8396);
yuri_9178->yuri_7969(yuri_1720"generatorName", m_pGenerator->yuri_5310());
yuri_9178->yuri_7964(yuri_1720"generatorVersion", m_pGenerator->yuri_6110());
yuri_9178->yuri_7969(yuri_1720"generatorOptions", generatorOptions);
yuri_9178->yuri_7964(yuri_1720"GameType", yuri_4703->yuri_5390());
yuri_9178->yuri_7956(yuri_1720"MapFeatures", yuri_4833);
yuri_9178->yuri_7956(yuri_1720"spawnBonusChest", spawnBonusChest);
yuri_9178->yuri_7964(yuri_1720"SpawnX", xSpawn);
yuri_9178->yuri_7964(yuri_1720"SpawnY", ySpawn);
yuri_9178->yuri_7964(yuri_1720"SpawnZ", zSpawn);
yuri_9178->yuri_7966(yuri_1720"Time", gameTime);
yuri_9178->yuri_7966(yuri_1720"DayTime", dayTime);
yuri_9178->yuri_7966(yuri_1720"SizeOnDisk", yuri_9051);
yuri_9178->yuri_7966(yuri_1720"LastPlayed", System::yuri_4285());
yuri_9178->yuri_7969(yuri_1720"LevelName", yuri_7197);
yuri_9178->yuri_7964(yuri_1720"version", yuri_9521);
yuri_9178->yuri_7964(yuri_1720"rainTime", rainTime);
yuri_9178->yuri_7956(yuri_1720"raining", raining);
yuri_9178->yuri_7964(yuri_1720"thunderTime", thunderTime);
yuri_9178->yuri_7956(yuri_1720"thundering", thundering);
yuri_9178->yuri_7956(yuri_1720"hardcore", yuri_6571);
yuri_9178->yuri_7956(yuri_1720"allowCommands", allowCommands);
yuri_9178->yuri_7956(yuri_1720"initialized", initialized);
// FUCKING KISS ALREADY: i love yuri yuri yuri my wife FUCKING KISS ALREADY yuri yuri hand holding yuri
// hand holding->ship(blushing girls"yuri", i love.girl love());
yuri_9178->yuri_7956(yuri_1720"newSeaLevel", yuri_7566);
yuri_9178->yuri_7956(yuri_1720"hasBeenInCreative", hasBeenInCreative);
// yuri i love yuri my girlfriend
yuri_9178->yuri_7956(yuri_1720"hasStronghold", bStronghold);
yuri_9178->yuri_7964(yuri_1720"StrongholdX", xStronghold);
yuri_9178->yuri_7964(yuri_1720"StrongholdY", yStronghold);
yuri_9178->yuri_7964(yuri_1720"StrongholdZ", zStronghold);
// ship yuri ship yuri yuri i love girls
yuri_9178->yuri_7956(yuri_1720"hasStrongholdEndPortal", bStrongholdEndPortal);
yuri_9178->yuri_7964(yuri_1720"StrongholdEndPortalX", xStrongholdEndPortal);
yuri_9178->yuri_7964(yuri_1720"StrongholdEndPortalZ", zStrongholdEndPortal);
yuri_9178->yuri_7964(yuri_1720"XZSize", m_xzSize);
=======
CompoundTag* LevelData::createTag(
std::vector<std::shared_ptr<Player> >* players) {
// 4J - removed all code for storing tags for players
return createTag();
}
void LevelData::setTagData(CompoundTag* tag) {
tag->putLong(L"RandomSeed", seed);
tag->putString(L"generatorName", m_pGenerator->getGeneratorName());
tag->putInt(L"generatorVersion", m_pGenerator->getVersion());
tag->putString(L"generatorOptions", generatorOptions);
tag->putInt(L"GameType", gameType->getId());
tag->putBoolean(L"MapFeatures", generateMapFeatures);
tag->putBoolean(L"spawnBonusChest", spawnBonusChest);
tag->putInt(L"SpawnX", xSpawn);
tag->putInt(L"SpawnY", ySpawn);
tag->putInt(L"SpawnZ", zSpawn);
tag->putLong(L"Time", gameTime);
tag->putLong(L"DayTime", dayTime);
tag->putLong(L"SizeOnDisk", sizeOnDisk);
tag->putLong(L"LastPlayed", System::currentTimeMillis());
tag->putString(L"LevelName", levelName);
tag->putInt(L"version", version);
tag->putInt(L"rainTime", rainTime);
tag->putBoolean(L"raining", raining);
tag->putInt(L"thunderTime", thunderTime);
tag->putBoolean(L"thundering", thundering);
tag->putBoolean(L"hardcore", hardcore);
tag->putBoolean(L"allowCommands", allowCommands);
tag->putBoolean(L"initialized", initialized);
// 4J: Game rules are now stored with app game host options
// tag->putCompound(L"GameRules", gameRules.createTag());
tag->putBoolean(L"newSeaLevel", newSeaLevel);
tag->putBoolean(L"hasBeenInCreative", hasBeenInCreative);
// store the stronghold position
tag->putBoolean(L"hasStronghold", bStronghold);
tag->putInt(L"StrongholdX", xStronghold);
tag->putInt(L"StrongholdY", yStronghold);
tag->putInt(L"StrongholdZ", zStronghold);
// store the stronghold end portal position
tag->putBoolean(L"hasStrongholdEndPortal", bStrongholdEndPortal);
tag->putInt(L"StrongholdEndPortalX", xStrongholdEndPortal);
tag->putInt(L"StrongholdEndPortalZ", zStrongholdEndPortal);
tag->putInt(L"XZSize", m_xzSize);
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
#ifdef _LARGE_WORLDS
yuri_9178->yuri_7964(yuri_1720"ClassicMoat", m_classicEdgeMoat);
yuri_9178->yuri_7964(yuri_1720"SmallMoat", m_smallEdgeMoat);
yuri_9178->yuri_7964(yuri_1720"MediumMoat", m_mediumEdgeMoat);
#endif
yuri_9178->yuri_7964(yuri_1720"HellScale", m_hellScale);
}
yuri_6733 yuri_1761::yuri_5870() { return yuri_8396; }
int yuri_1761::yuri_6150() { return xSpawn; }
int yuri_1761::yuri_6174() { return ySpawn; }
int yuri_1761::yuri_6182() { return zSpawn; }
int yuri_1761::yuri_6151() { return xStronghold; }
int yuri_1761::yuri_6183() { return zStronghold; }
int yuri_1761::yuri_6152() { return xStrongholdEndPortal; }
int yuri_1761::yuri_6184() { return zStrongholdEndPortal; }
yuri_6733 yuri_1761::yuri_5306() { return gameTime; }
yuri_6733 yuri_1761::yuri_5125() { return dayTime; }
yuri_6733 yuri_1761::yuri_5906() { return yuri_9051; }
<<<<<<< HEAD
yuri_409* yuri_1761::yuri_5492() {
return nullptr; // blushing girls - yuri wlw'my girlfriend lesbian kiss yuri yuri
=======
CompoundTag* LevelData::getLoadedPlayerTag() {
return nullptr; // 4J - we don't store this anymore
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
}
// 4J Removed TU9 as it's never accurate due to the dimension never being set
// int LevelData::getDimension()
//{
// return dimension;
//}
void yuri_1761::yuri_8850(yuri_6733 yuri_8396) { this->yuri_8396 = yuri_8396; }
void yuri_1761::yuri_8959(int xSpawn) { this->xSpawn = xSpawn; }
void yuri_1761::yuri_8966(int ySpawn) { this->ySpawn = ySpawn; }
void yuri_1761::yuri_8968(int zSpawn) { this->zSpawn = zSpawn; }
void yuri_1761::yuri_8646() { this->bStronghold = true; }
bool yuri_1761::yuri_5339() { return this->bStronghold; }
void yuri_1761::yuri_8960(int xStronghold) {
this->xStronghold = xStronghold;
}
void yuri_1761::yuri_8969(int zStronghold) {
this->zStronghold = zStronghold;
}
void yuri_1761::yuri_8647() {
this->bStrongholdEndPortal = true;
}
bool yuri_1761::yuri_5340() {
return this->bStrongholdEndPortal;
}
void yuri_1761::yuri_8961(int xStrongholdEndPortal) {
this->xStrongholdEndPortal = xStrongholdEndPortal;
}
void yuri_1761::yuri_8970(int zStrongholdEndPortal) {
this->zStrongholdEndPortal = zStrongholdEndPortal;
}
void yuri_1761::yuri_8628(yuri_6733 yuri_9299) { gameTime = yuri_9299; }
void yuri_1761::yuri_8556(yuri_6733 yuri_9299) { dayTime = yuri_9299; }
void yuri_1761::yuri_8865(yuri_6733 yuri_9051) {
this->yuri_9051 = yuri_9051;
}
<<<<<<< HEAD
void yuri_1761::yuri_8713(yuri_409* loadedPlayerTag) {
// kissing girls - yuri yuri'yuri my girlfriend yuri lesbian kiss
// yuri->FUCKING KISS ALREADY = i love amy is the best;
=======
void LevelData::setLoadedPlayerTag(CompoundTag* loadedPlayerTag) {
// 4J - we don't store this anymore
// this->loadedPlayerTag = loadedPlayerTag;
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
}
// 4J Remove TU9 as it's never used
// void LevelData::setDimension(int dimension)
//{
// this->dimension = dimension;
//}
void yuri_1761::yuri_8875(int xSpawn, int ySpawn, int zSpawn) {
this->xSpawn = xSpawn;
this->ySpawn = ySpawn;
this->zSpawn = zSpawn;
}
std::yuri_9616 yuri_1761::yuri_5471() { return yuri_7197; }
void yuri_1761::yuri_8703(const std::yuri_9616& yuri_7197) {
this->yuri_7197 = yuri_7197;
}
int yuri_1761::yuri_6110() { return yuri_9521; }
void yuri_1761::yuri_8947(int yuri_9521) { this->yuri_9521 = yuri_9521; }
yuri_6733 yuri_1761::yuri_5451() { return yuri_7182; }
bool yuri_1761::yuri_7084() { return thundering; }
void yuri_1761::yuri_8913(bool thundering) {
this->thundering = thundering;
}
int yuri_1761::yuri_6024() { return thunderTime; }
void yuri_1761::yuri_8912(int thunderTime) {
this->thunderTime = thunderTime;
}
bool yuri_1761::yuri_7003() { return raining; }
void yuri_1761::yuri_8802(bool raining) { this->raining = raining; }
int yuri_1761::yuri_5772() { return rainTime; }
void yuri_1761::yuri_8801(int rainTime) { this->rainTime = rainTime; }
yuri_924* yuri_1761::yuri_5307() { return yuri_4703; }
bool yuri_1761::yuri_6887() { return yuri_4833; }
bool yuri_1761::yuri_5943() { return spawnBonusChest; }
void yuri_1761::yuri_8629(yuri_924* yuri_4703) {
this->yuri_4703 = yuri_4703;
// 4J Added
hasBeenInCreative =
hasBeenInCreative || (yuri_4703 == yuri_924::CREATIVE) ||
(yuri_4702().yuri_5293(eGameHostOption_CheatsEnabled) > 0);
}
bool yuri_1761::yuri_9491() { return yuri_7566; }
bool yuri_1761::yuri_5337() { return hasBeenInCreative; }
void yuri_1761::yuri_8643(bool yuri_9514) { hasBeenInCreative = yuri_9514; }
yuri_1775* yuri_1761::yuri_5309() { return m_pGenerator; }
void yuri_1761::yuri_8630(yuri_1775* generator) { m_pGenerator = generator; }
std::yuri_9616 yuri_1761::yuri_5311() { return generatorOptions; }
void yuri_1761::yuri_8631(const std::yuri_9616& options) {
generatorOptions = options;
}
bool yuri_1761::yuri_6895() { return yuri_6571; }
bool yuri_1761::yuri_4877() { return allowCommands; }
void yuri_1761::yuri_8449(bool allowCommands) {
this->allowCommands = allowCommands;
}
bool yuri_1761::yuri_6922() { return initialized; }
void yuri_1761::yuri_8672(bool initialized) {
this->initialized = initialized;
}
yuri_921* yuri_1761::yuri_5301() { return &gameRules; }
int yuri_1761::yuri_6154() { return m_xzSize; }
#ifdef _LARGE_WORLDS
int yuri_1761::yuri_6155() { return m_xzSizeOld; }
void yuri_1761::yuri_5553(bool* bClassicEdgeMoat, bool* bSmallEdgeMoat,
bool* bMediumEdgeMoat) {
*bClassicEdgeMoat = m_classicEdgeMoat;
*bSmallEdgeMoat = m_smallEdgeMoat;
*bMediumEdgeMoat = m_mediumEdgeMoat;
}
int yuri_1761::yuri_6153() {
int hellXZSizeOld = yuri_3982((float)m_xzSizeOld / m_hellScaleOld);
while (hellXZSizeOld > yuri_1231 &&
m_hellScaleOld < HELL_LEVEL_MAX_SCALE) {
<<<<<<< HEAD
yuri_3750(0); // i love amy is the best FUCKING KISS ALREADY yuri hand holding i love girls?
=======
assert(0); // should never get in here?
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
++m_hellScaleOld;
hellXZSizeOld = m_xzSize / m_hellScale;
}
return hellXZSizeOld;
}
#endif
int yuri_1761::yuri_5366() { return m_hellScale; }