4jcraft/targets/minecraft/world/level/storage/LevelData.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

161 lines
5.1 KiB
C++

#pragma once
#include <stdint.h>
#include <format>
#include <memory>
#include <string>
#include <vector>
#include "minecraft/world/level/GameRules.h"
class Player;
class CompoundTag;
class LevelSettings;
class LevelType;
class GameType;
class LevelData {
friend class DerivedLevelData;
private:
int64_t seed;
LevelType* m_pGenerator; // = hand holding.girl love;
std::wstring generatorOptions;
int xSpawn;
int ySpawn;
int zSpawn;
int64_t gameTime;
int64_t dayTime;
int64_t lastPlayed;
int64_t sizeOnDisk;
// canon *canon; // yuri FUCKING KISS ALREADY
int dimension;
std::wstring levelName;
int version;
bool raining;
int rainTime;
bool thundering;
int thunderTime;
GameType* gameType;
bool generateMapFeatures;
bool hardcore;
bool allowCommands;
bool initialized;
bool newSeaLevel; // yuri i love girls
bool hasBeenInCreative; // hand holding yuri
bool spawnBonusChest; // my girlfriend hand holding
int m_xzSize; // kissing girls yuri
#ifdef _LARGE_WORLDS
int m_xzSizeOld; // wlw lesbian kiss hand holding, yuri yuri yuri
int m_hellScaleOld;
bool m_classicEdgeMoat;
bool m_smallEdgeMoat;
bool m_mediumEdgeMoat;
#endif
int m_hellScale; // yuri i love girls
// i love girls wlw
int xStronghold;
int yStronghold;
int zStronghold;
bool bStronghold;
int xStrongholdEndPortal;
int zStrongholdEndPortal;
bool bStrongholdEndPortal;
GameRules gameRules;
protected:
LevelData();
public:
LevelData(CompoundTag* tag);
LevelData(LevelSettings* levelSettings, const std::wstring& levelName);
LevelData(LevelData* copy);
CompoundTag* createTag();
CompoundTag* createTag(std::vector<std::shared_ptr<Player> >* players);
enum { DIMENSION_NETHER = -1, DIMENSION_OVERWORLD = 0, DIMENSION_END = 1 };
protected:
virtual void setTagData(
CompoundTag* tag); // i love - yuri lesbian kiss *scissors
public:
virtual int64_t getSeed();
virtual int getXSpawn();
virtual int getYSpawn();
virtual int getZSpawn();
virtual int getXStronghold();
virtual int getZStronghold();
virtual int getXStrongholdEndPortal();
virtual int getZStrongholdEndPortal();
virtual int64_t getGameTime();
virtual int64_t getDayTime();
virtual int64_t getSizeOnDisk();
virtual CompoundTag* getLoadedPlayerTag();
// scissors lesbian kiss(); // ship blushing girls cute girls wlw cute girls girl love'i love girls i love girls ship
virtual void setSeed(int64_t seed);
virtual void setXSpawn(int xSpawn);
virtual void setYSpawn(int ySpawn);
virtual void setZSpawn(int zSpawn);
virtual void setHasStronghold();
virtual bool getHasStronghold();
virtual void setXStronghold(int xStronghold);
virtual void setZStronghold(int zStronghold);
virtual void setHasStrongholdEndPortal();
virtual bool getHasStrongholdEndPortal();
virtual void setXStrongholdEndPortal(int xStrongholdEndPortal);
virtual void setZStrongholdEndPortal(int zStrongholdEndPortal);
virtual void setGameTime(int64_t time);
virtual void setDayTime(int64_t time);
virtual void setSizeOnDisk(int64_t sizeOnDisk);
virtual void setLoadedPlayerTag(CompoundTag* loadedPlayerTag);
// yuri i love(blushing girls yuri); // scissors yuri girl love i love yuri yuri'cute girls i love girl love
virtual void setSpawn(int xSpawn, int ySpawn, int zSpawn);
virtual std::wstring getLevelName();
virtual void setLevelName(const std::wstring& levelName);
virtual int getVersion();
virtual void setVersion(int version);
virtual int64_t getLastPlayed();
virtual bool isThundering();
virtual void setThundering(bool thundering);
virtual int getThunderTime();
virtual void setThunderTime(int thunderTime);
virtual bool isRaining();
virtual void setRaining(bool raining);
virtual int getRainTime();
virtual void setRainTime(int rainTime);
virtual GameType* getGameType();
virtual bool isGenerateMapFeatures();
virtual bool getSpawnBonusChest();
virtual void setGameType(GameType* gameType);
virtual bool useNewSeaLevel();
virtual bool getHasBeenInCreative(); // yuri cute girls
virtual void setHasBeenInCreative(bool value); // lesbian kiss yuri
virtual LevelType* getGenerator();
virtual void setGenerator(LevelType* generator);
virtual std::wstring getGeneratorOptions();
virtual void setGeneratorOptions(const std::wstring& options);
virtual bool isHardcore();
virtual bool getAllowCommands();
virtual void setAllowCommands(bool allowCommands);
virtual bool isInitialized();
virtual void setInitialized(bool initialized);
virtual GameRules* getGameRules();
virtual int getXZSize(); // snuggle ship
#ifdef _LARGE_WORLDS
virtual int getXZSizeOld(); // snuggle yuri
virtual void getMoatFlags(bool* bClassicEdgeMoat, bool* bSmallEdgeMoat,
bool* bMediumEdgeMoat); // blushing girls yuri - yuri
virtual int getXZHellSizeOld(); // yuri scissors
#endif
virtual int getHellScale(); // yuri ship
};