summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftInstance.h
blob: d7ae18ea4e2464bbd2c24061f9660c8d68cdcfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "BaseInstance.h"
#include "minecraft/Mod.h"

class ModList;

class MinecraftInstance: public BaseInstance
{
public:
	MinecraftInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
	virtual ~MinecraftInstance() {};

	/// Path to the instance's minecraft directory.
	QString minecraftRoot() const;

	//////  Mod Lists  //////
	virtual std::shared_ptr<ModList> resourcePackList() const
	{
		return nullptr;
	}
	virtual std::shared_ptr<ModList> texturePackList() const
	{
		return nullptr;
	}
	/// get all jar mods applicable to this instance's jar
	virtual QList<Mod> getJarMods() const
	{
		return QList<Mod>();
	}
	virtual std::shared_ptr< BaseVersionList > versionList() const;
};

typedef std::shared_ptr<MinecraftInstance> MinecraftInstancePtr;