3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/screens/controllers/BlockScreenController.h"
9#include "mc/deps/core/utility/pub_sub/Subscription.h"
10#include "mc/world/level/BlockPos.h"
11#include "mc/world/level/block/StructureBlockType.h"
12#include "mc/world/level/levelgen/structure/StructureEditorData.h"
13#include "mc/world/level/levelgen/structure/StructureTelemetryClientData.h"
23namespace Json {
class Value; }
29 enum class FilePickerType : uchar {
37 ::ll::TypedStorage<4, 12, ::BlockPos const> mBlockPos;
38 ::ll::TypedStorage<1, 1, bool> mAnimationModeDropdownActive;
39 ::ll::TypedStorage<1, 1, bool> mRedstoneDropdownActive;
40 ::ll::TypedStorage<1, 1, bool> mModeDropDownActive;
41 ::ll::TypedStorage<1, 1, bool> mTextBoxEditing;
42 ::ll::TypedStorage<1, 1, bool> mExportCompleted;
43 ::ll::TypedStorage<1, 1, bool> mExportSucceeded;
44 ::ll::TypedStorage<1, 1, bool> mRenderedStructure;
45 ::ll::TypedStorage<1, 1, bool> mIsExporting;
46 ::ll::TypedStorage<1, 1, bool> mIsImporting;
47 ::ll::TypedStorage<1, 1, bool> mNeedsBindsUpdate;
48 ::ll::TypedStorage<1, 1, bool> mMirrorX;
49 ::ll::TypedStorage<1, 1, bool> mMirrorZ;
50 ::ll::TypedStorage<1, 1, bool> mStructureExists;
51 ::ll::TypedStorage<1, 1, bool> mHasOpened;
52 ::ll::TypedStorage<1, 1, bool> mTrigger3dExport;
53 ::ll::TypedStorage<1, 1, bool const> m3DExportSupport;
54 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MinecraftglTFExporter>> mglTFExporter;
55 ::ll::TypedStorage<8, 216, ::StructureEditorData> mStructureEditorData;
56 ::ll::TypedStorage<8, 8, ::StructureTemplate*> mImportingStructureTemplate;
57 ::ll::TypedStorage<4, 16, ::StructureTelemetryClientData> mTelemetryClientData;
58 ::ll::TypedStorage<8, 32, ::std::string> mAnimationTimeString;
59 ::ll::TypedStorage<8, 32, ::std::string> mSeedString;
60 ::ll::TypedStorage<1, 1, bool> mShouldUseFilteredMessage;
61 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mProfanityToggleSubscription;
66 StructureEditorScreenController();
71 virtual ~StructureEditorScreenController() ;
73 virtual void onOpen() ;
75 virtual void onLeave() ;
77 virtual ::ui::DirtyFlag tick() ;
79 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
81 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) ;
83 virtual ::std::string _getButtonADescription() ;
89 MCAPI StructureEditorScreenController(
90 ::std::shared_ptr<::ClientInstanceScreenModel> model,
92 ::BlockPos
const& pos,
93 ::ActorUniqueID uniqueId
96 MCAPI
void _filePicker(::StructureEditorScreenController::FilePickerType op);
98 MCAPI ::std::string _getBlockTypeIcon();
100 MCFOLD ::std::string _getTextEditValue(::TextEditScreenEventData& textEditEvent)
const;
102 MCAPI
float _getTextEditValueAsFloat(::TextEditScreenEventData& textEditEvent)
const;
104 MCAPI
int _getTextEditValueAsInt(::TextEditScreenEventData& textEditEvent)
const;
106 MCAPI
void _initiate3DExport();
108 MCAPI
void _initiateDetect();
110 MCAPI
void _initiateExport();
112 MCAPI
void _initiateFileGeneration();
114 MCAPI
void _initiateImport();
116 MCAPI
void _initiateLoad();
118 MCAPI
void _initiateSave();
120 MCAPI
void _onBoundsChanged();
122 MCAPI
void _onStructureTypeChanged(::StructureBlockType newMode);
124 MCAPI
void _registerAnimationModeDropdown();
126 MCAPI
void _registerBindings();
128 MCAPI
void _registerEventHandlers();
130 MCAPI
void _registerModeDropdown();
132 MCAPI
void _registerRedstoneDropdown();
134 MCAPI
void _setSeedFromString();
136 MCAPI
void _updateStructureBlock(
bool trigger);
138 MCAPI
void _validateAndSetOffset(
int newValue,
int index);
140 MCAPI
void _validateAndSetSize(
int newValue,
int index);
147 ::std::shared_ptr<::ClientInstanceScreenModel> model,
149 ::BlockPos
const& pos,
150 ::ActorUniqueID uniqueId
163 MCAPI
void $onOpen();
165 MCAPI
void $onLeave();
167 MCAPI ::ui::DirtyFlag $tick();
169 MCAPI
void $addStaticScreenVars(::Json::Value& globalVars);
171 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
173 MCFOLD ::std::string $_getButtonADescription();
Definition BlockScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition MinecraftglTFExporter.h:5
Definition StructureEditorScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition StructureTemplate.h:35
Definition ActorUniqueID.h:5
Definition TextEditScreenEventData.h:5