3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/world/actor/player/LoadingState.h"
18 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mOnTick;
19 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancel;
20 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
21 ::ll::TypedStorage<1, 1, bool> mDone;
26 RealmsApplyContentProgressHandler();
31 virtual ~RealmsApplyContentProgressHandler() =
default;
33 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
35 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
37 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
39 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
41 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
43 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
45 virtual ::std::string getTitleText() const ;
47 virtual ::std::
string getName() const ;
53 MCNAPI RealmsApplyContentProgressHandler(
54 ::
std::
string const& title,
55 ::
std::function<
bool()> tickCallback,
56 ::
std::function<
void()> cancelCallback
64 $ctor(::
std::
string const& title, ::
std::function<
bool()> tickCallback, ::
std::function<
void()> cancelCallback);
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition RealmsApplyContentProgressHandler.h:5
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getName() const
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getTitleText() const
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void * $ctor(::std::string const &title, ::std::function< bool()> tickCallback, ::std::function< void()> cancelCallback)
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const