/********************************************************************
	Minecraft: Pocket Edition - Decompilation Project
	Copyright (C) 2023 iProgramInCpp
	
	The following code is licensed under the BSD 1 clause license.
	SPDX-License-Identifier: BSD-1-Clause
 ********************************************************************/

#pragma once
#include <string>
#include "common/Utils.hpp"
#include "GameMods.hpp"
class Level;
class LevelChunk;

class ChunkSource
{
public:
	virtual ~ChunkSource();
	virtual bool hasChunk(int, int) = 0;
	virtual LevelChunk* getChunk(int, int) = 0;
	virtual LevelChunk* create(int, int) = 0;
	virtual LevelChunk* getChunkDontCreate(int, int) = 0;
	virtual void postProcess(ChunkSource*, int, int) = 0;
	virtual int  tick() = 0;
	virtual bool shouldSave() = 0;
	virtual void saveAll();
	virtual std::string gatherStats() = 0;
#ifdef ENH_IMPROVED_SAVING
	virtual void saveUnsaved();
#endif
};

