LeviLamina
Loading...
Searching...
No Matches
BlockChangedOperation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/IOperation.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class Level;
15namespace Editor { class ServiceProviderCollection; }
16namespace Editor::Transactions { struct BlockChangeIntentData; }
17// clang-format on
18
19namespace Editor::Transactions {
20
21class BlockChangedOperation : public ::Editor::Transactions::IOperation {
22public:
23 // member variables
24 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 BlockChangedOperation& operator=(BlockChangedOperation const&);
31 BlockChangedOperation(BlockChangedOperation const&);
32 BlockChangedOperation();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~BlockChangedOperation() /*override*/ = default;
38
39 virtual ::std::string_view getName() /*override*/;
40
41 virtual ::Scripting::Result_deprecated<void> _undo(::Editor::ServiceProviderCollection& services) /*override*/;
42
43 virtual ::Scripting::Result_deprecated<void> _redo(::Editor::ServiceProviderCollection& services) /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI ::Scripting::Result_deprecated<void>
51
52 MCNAPI ::Scripting::Result_deprecated<void> _setBlock(
53 ::Level& level,
54 ::BlockSource& region,
55 uint const& blockToPlace,
56 uint const& extraBlockToPlace,
57 ::CompoundTag* blockData,
58 ::BlockPos const& pos
59 ) const;
60
61 MCNAPI ::Scripting::Result_deprecated<void> _setBlocks(::Level& level, ::BlockSource& region, bool isUndo) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCNAPI static ::std::vector<::Editor::Transactions::BlockChangeIntentData>
68 createBlockChangeIntentFromLocation(::BlockSource const& region, ::BlockPos const& pos, bool includeAll);
69 // NOLINTEND
70
71public:
72 // static variables
73 // NOLINTBEGIN
74 MCNAPI static ::std::string const& DEFAULT_OPERATION_NAME();
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCNAPI ::std::string_view $getName();
81
82 MCNAPI ::Scripting::Result_deprecated<void> $_undo(::Editor::ServiceProviderCollection& services);
83
84 MCNAPI ::Scripting::Result_deprecated<void> $_redo(::Editor::ServiceProviderCollection& services);
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
95
96} // namespace Editor::Transactions
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition CompoundTag.h:23
Definition ServiceProviderCollection.h:7
MCAPI ::Scripting::Result_deprecated< void > $_undo(::Editor::ServiceProviderCollection &services)
MCAPI ::Scripting::Result_deprecated< void > _setBlocks(::Level &level, ::BlockSource &region, bool isUndo) const
MCAPI ::Scripting::Result_deprecated< void > $_redo(::Editor::ServiceProviderCollection &services)
MCAPI ::Scripting::Result_deprecated< void > _performOperation(::Editor::ServiceProviderCollection &services, bool isUndo) const
static MCAPI ::std::string const & DEFAULT_OPERATION_NAME()
static MCAPI ::std::vector<::Editor::Transactions::BlockChangeIntentData > createBlockChangeIntentFromLocation(::BlockSource const &region, ::BlockPos const &pos, bool includeAll)
MCAPI ::Scripting::Result_deprecated< void > _setBlock(::Level &level, ::BlockSource &region, uint const &blockToPlace, uint const &extraBlockToPlace, ::CompoundTag *blockData, ::BlockPos const &pos) const
Definition IOperation.h:15
Definition Level.h:249
Definition BlockChangeIntentData.h:13
Definition Alias.h:14