MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / setPackFormat

Method setPackFormat

launcher/minecraft/mod/DataPack.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 { 48, { Version("1.21"), Version("1.21") } } };
77
78void DataPack::setPackFormat(int new_format_id)
79{
80 QMutexLocker locker(&m_data_lock);
81
82 if (!s_pack_format_versions.contains(new_format_id)) {
83 qWarning() << "Pack format '" << new_format_id << "' is not a recognized data pack id!";
84 }
85
86 m_pack_format = new_format_id;
87}
88
89void DataPack::setDescription(QString new_description)
90{

Callers 4

processMCMetaFunction · 0.45
processMCMetaFunction · 0.45
processFolderFunction · 0.45
processZIPFunction · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected