move everything to minecraft subdir, switch to absolute include path

This commit is contained in:
Tropical
2026-03-30 11:01:08 -05:00
parent d570e28c16
commit 5c17c5c9ff
7716 changed files with 36853 additions and 36857 deletions
@@ -0,0 +1,27 @@
#include "Minecraft.World/Header Files/stdafx.h"
#include "../../../../net/minecraft/client/Minecraft.h"
#include "../../../../net/minecraft/client/player/LocalPlayer.h"
#include "../../../../net/minecraft/stats/StatsCounter.h"
#include "Minecraft.World/net/minecraft/stats/net.minecraft.stats.h"
#include "StatTask.h"
StatTask::StatTask(Tutorial* tutorial, int descriptionId,
bool enablePreCompletion, Stat* stat, int variance /*= 1*/)
: TutorialTask(tutorial, descriptionId, enablePreCompletion, nullptr) {
this->stat = stat;
Minecraft* minecraft = Minecraft::GetInstance();
targetValue =
minecraft->stats[ProfileManager.GetPrimaryPad()]->getTotalValue(stat) +
variance;
}
bool StatTask::isCompleted() {
if (bIsCompleted) return true;
Minecraft* minecraft = Minecraft::GetInstance();
bIsCompleted =
minecraft->stats[ProfileManager.GetPrimaryPad()]->getTotalValue(stat) >=
(unsigned int)targetValue;
return bIsCompleted;
}