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.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
22public:
23 // member variables
24 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 0
38 virtual ~BlockChangedOperation() /*override*/ = default;
39
40 // vIndex: 1
41 virtual ::std::string_view getName() /*override*/;
42
43 // vIndex: 2
44 virtual ::Scripting::Result<void> _undo(::Editor::ServiceProviderCollection& services) /*override*/;
45
46 // vIndex: 3
47 virtual ::Scripting::Result<void> _redo(::Editor::ServiceProviderCollection& services) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI ::Scripting::Result<void> _performOperation(::Editor::ServiceProviderCollection& services, bool isUndo) const;
54
55 MCAPI ::Scripting::Result<void> _setBlock(
56 ::Level& level,
57 ::BlockSource& region,
58 uint const& blockToPlace,
59 uint const& extraBlockToPlace,
60 ::CompoundTag* blockData,
61 ::BlockPos const& pos
62 ) const;
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCAPI static ::std::vector<::Editor::Transactions::BlockChangeIntentData>
69 createBlockChangeIntentFromLocation(::BlockSource const& region, ::BlockPos const& pos, bool includeAll);
70 // NOLINTEND
71
72public:
73 // static variables
74 // NOLINTBEGIN
75 MCAPI static ::std::string const& DEFAULT_OPERATION_NAME();
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI ::std::string_view $getName();
88
89 MCAPI ::Scripting::Result<void> $_undo(::Editor::ServiceProviderCollection& services);
90
91 MCAPI ::Scripting::Result<void> $_redo(::Editor::ServiceProviderCollection& services);
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCAPI static void** $vftable();
98 // NOLINTEND
99};
100
101} // namespace Editor::Transactions
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition ServiceProviderCollection.h:7
Definition BlockChangedOperation.h:21
Definition IOperation.h:15
Definition Level.h:234
Definition Alias.h:14