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
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_deprecated<void> _undo(::Editor::ServiceProviderCollection& services) /*override*/;
45
46 // vIndex: 3
47 virtual ::Scripting::Result_deprecated<void> _redo(::Editor::ServiceProviderCollection& services) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCNAPI ::Scripting::Result_deprecated<void>
55
56 MCNAPI ::Scripting::Result_deprecated<void> _setBlock(
57 ::Level& level,
58 ::BlockSource& region,
59 uint const& blockToPlace,
60 uint const& extraBlockToPlace,
61 ::CompoundTag* blockData,
62 ::BlockPos const& pos
63 ) const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCNAPI static ::std::vector<::Editor::Transactions::BlockChangeIntentData>
70 createBlockChangeIntentFromLocation(::BlockSource const& region, ::BlockPos const& pos, bool includeAll);
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCNAPI static ::std::string const& DEFAULT_OPERATION_NAME();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI ::std::string_view $getName();
83
84 MCNAPI ::Scripting::Result_deprecated<void> $_undo(::Editor::ServiceProviderCollection& services);
85
86 MCNAPI ::Scripting::Result_deprecated<void> $_redo(::Editor::ServiceProviderCollection& services);
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
95
96} // namespace Editor::Transactions
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition ServiceProviderCollection.h:7
Definition BlockChangedOperation.h:21
MCAPI ::Scripting::Result_deprecated< void > $_undo(::Editor::ServiceProviderCollection &services)
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:238
Definition Alias.h:14