3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/world/actor/player/LoadingState.h"
18 ::ll::TypedStorage<1, 1, bool> mInitialized;
19 ::ll::TypedStorage<1, 1, bool> mRequestCanceled;
20 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mInitTime;
21 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mTimeoutTime;
22 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnStart;
23 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancel;
24 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool const>> mJoinRequestComplete;
29 ExperienceJoinProgressHandler();
34 virtual ~ExperienceJoinProgressHandler() =
default;
36 virtual void onStart(::MinecraftScreenModel&) ;
38 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
40 virtual void onCancel(::MinecraftScreenModel&) ;
42 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
44 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&)
const ;
46 virtual ::std::string getProgressMessage(::MinecraftScreenModel&)
const ;
48 virtual ::std::string getTitleText() const ;
50 virtual ::std::
string getName() const ;
56 MCAPI ExperienceJoinProgressHandler(
57 ::std::function<
void()> startCallback,
58 ::std::function<
void()> cancelCallback,
59 ::std::shared_ptr<
bool const> joinRequestComplete
67 ::std::function<
void()> startCallback,
68 ::std::function<
void()> cancelCallback,
69 ::std::shared_ptr<
bool const> joinRequestComplete
76 MCAPI
void $onStart(::MinecraftScreenModel&);
78 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
80 MCAPI
void $onCancel(::MinecraftScreenModel&);
82 MCAPI
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
84 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
86 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel&) const;
88 MCAPI ::std::
string $getTitleText() const;
90 MCAPI ::std::
string $getName() const;
Definition ExperienceJoinProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5