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 onCancel(::MinecraftScreenModel& minecraftScreenModel) = 0;
40 virtual void onRetry(::MinecraftScreenModel& minecraftScreenModel);
42 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) = 0;
44 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const = 0;
46 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const;
48 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const = 0;
50 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties)
const;
52 virtual ::std::string getName()
const = 0;
54 virtual ::std::string getTTSProgressMessage()
const;
56 virtual ::std::string getTitleText()
const;
58 virtual ::ProgressAnimation showLoadingBar()
const;
64 MCFOLD
void $onGameEventNotification(
65 ::MinecraftScreenModel& minecraftScreenModel,
66 ::ui::GameEventNotification
const& notification
69 MCFOLD
void $onRetry(::MinecraftScreenModel& minecraftScreenModel);
71 MCAPI
float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const;
73 MCFOLD
void $addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties)
const;
75 MCAPI ::std::string $getTTSProgressMessage()
const;
77 MCAPI ::std::string $getTitleText()
const;
79 MCFOLD ::ProgressAnimation $showLoadingBar()
const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5