3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/controllers/ContainerScreenController.h"
8#include "mc/client/gui/screens/controllers/RepeatCraftButtonData.h"
9#include "mc/world/item/ItemInstance.h"
19namespace Json {
class Value; }
25 enum class LeftTabIndex :
int {
34 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::LoomContainerManagerController>> mLoomContainerManagerController;
35 ::ll::TypedStorage<4, 4, int> mSelectedLeftTab;
36 ::ll::TypedStorage<4, 4, int> mLastSelectedPatternIndex;
37 ::ll::TypedStorage<8, 128, ::ItemInstance> mVisualPatternItem;
38 ::ll::TypedStorage<8, 136, ::RepeatCraftButtonData> mRepeatCraftButton;
43 LoomScreenController();
48 virtual ~LoomScreenController() =
default;
50 virtual ::ui::DirtyFlag tick() ;
52 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
54 virtual bool _isStillValid() const ;
56 virtual
void _registerCoalesceOrder() ;
58 virtual
void _registerAutoPlaceOrder() ;
60 virtual ::ItemStackBase const&
61 _getVisualItemStackImpl(::std::
string const& collectionName,
int collectionIndex) const ;
67 MCAPI LoomScreenController(
68 ::std::shared_ptr<::ClientInstanceScreenModel> model,
70 ::BlockPos const& pos,
71 ::ActorUniqueID uniqueId
74 MCAPI
void _changeLeftTab(
int dir);
76 MCAPI
void _registerBindings();
78 MCAPI
void _registerEventHandlers();
80 MCAPI
void _registerStateMachine();
82 MCAPI
void _selectPattern(
int collectionIndex);
84 MCAPI
void _updateVisualPatternItem();
91 ::std::shared_ptr<::ClientInstanceScreenModel> model,
93 ::BlockPos const& pos,
94 ::ActorUniqueID uniqueId
101 MCAPI ::ui::DirtyFlag $tick();
103 MCAPI
void $addStaticScreenVars(::Json::Value& globalVars);
105 MCFOLD
bool $_isStillValid() const;
107 MCAPI
void $_registerCoalesceOrder();
109 MCAPI
void $_registerAutoPlaceOrder();
111 MCAPI ::ItemStackBase const&
112 $_getVisualItemStackImpl(::std::
string const& collectionName,
int collectionIndex) const;
Definition ClientInstanceScreenModel.h:5
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:44
Definition LoomContainerManagerController.h:22
Definition LoomScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition ActorUniqueID.h:5