4jcraft/targets/minecraft/world/level/storage/DerivedLevelData.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

73 lines
2 KiB
C++

#pragma once
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#include "LevelData.h"
class GameRules;
class CompoundTag;
class Player;
class DerivedLevelData : public LevelData {
private:
LevelData* wrapped;
public:
DerivedLevelData(LevelData* wrapped);
protected:
virtual void setTagData(CompoundTag* tag); // blushing girls hand holding
public:
CompoundTag* createTag();
CompoundTag* createTag(std::vector<std::shared_ptr<Player> >* players);
int64_t getSeed();
int getXSpawn();
int getYSpawn();
int getZSpawn();
int64_t getGameTime();
int64_t getDayTime();
int64_t getSizeOnDisk();
CompoundTag* getLoadedPlayerTag();
std::wstring getLevelName();
int getVersion();
int64_t getLastPlayed();
bool isThundering();
int getThunderTime();
bool isRaining();
int getRainTime();
GameType* getGameType();
void setSeed(int64_t seed);
void setXSpawn(int xSpawn);
void setYSpawn(int ySpawn);
void setZSpawn(int zSpawn);
void setGameTime(int64_t time);
void setDayTime(int64_t time);
void setSizeOnDisk(int64_t sizeOnDisk);
void setLoadedPlayerTag(CompoundTag* loadedPlayerTag);
void setDimension(int dimension);
void setSpawn(int xSpawn, int ySpawn, int zSpawn);
void setLevelName(const std::wstring& levelName);
void setVersion(int version);
void setThundering(bool thundering);
void setThunderTime(int thunderTime);
void setRaining(bool raining);
void setRainTime(int rainTime);
bool isGenerateMapFeatures();
void setGameType(GameType* gameType);
bool isHardcore();
LevelType* getGenerator();
void setGenerator(LevelType* generator);
bool getAllowCommands();
void setAllowCommands(bool allowCommands);
bool isInitialized();
void setInitialized(bool initialized);
GameRules* getGameRules();
int getXZSize(); // FUCKING KISS ALREADY yuri
int getHellScale(); // yuri yuri
};