3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/GameEventNotification.h"
7#include "mc/client/gui/ProgressAnimation.h"
8#include "mc/client/gui/ProgressHandlerType.h"
9#include "mc/world/actor/player/LoadingState.h"
20 ::ll::TypedStorage<4, 4, ::ProgressHandlerType const> mType;
21 ::ll::TypedStorage<4, 4, ::ProgressAnimation> mProgressAnimation;
27 virtual ~ProgressHandler() =
default;
29 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) = 0;
31 virtual void onGameEventNotification(
32 ::MinecraftScreenModel& minecraftScreenModel,
33 ::ui::GameEventNotification
const& notification
36 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) = 0;
38 virtual void onComplete(::MinecraftScreenModel& minecraftScreenModel);
40 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) = 0;
42 virtual void onRetry(::MinecraftScreenModel& minecraftScreenModel);
44 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) = 0;
46 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const = 0;
48 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const;
50 virtual ::std::string getProgressMessage(::MinecraftScreenModel& model)
const = 0;
52 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties)
const;
54 virtual ::std::string getName()
const = 0;
56 virtual ::std::string getTTSProgressMessage()
const;
58 virtual ::std::string getTitleText()
const;
60 virtual ::ProgressAnimation showLoadingBar()
const;
66 MCFOLD
void $onGameEventNotification(
67 ::MinecraftScreenModel& minecraftScreenModel,
68 ::ui::GameEventNotification
const& notification
71 MCFOLD
void $onComplete(::MinecraftScreenModel& minecraftScreenModel);
73 MCFOLD
void $onRetry(::MinecraftScreenModel& minecraftScreenModel);
75 MCAPI
float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const;
77 MCFOLD
void $addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties)
const;
79 MCAPI ::std::string $getTTSProgressMessage()
const;
81 MCFOLD ::ProgressAnimation $showLoadingBar()
const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5