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; }
17namespace Editor::Transactions { struct BlockChangedOperationData; }
18// clang-format on
19
20namespace Editor::Transactions {
21
22class BlockChangedOperation : public ::Editor::Transactions::IOperation {
23public:
24 // member variables
25 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 BlockChangedOperation& operator=(BlockChangedOperation const&);
32 BlockChangedOperation(BlockChangedOperation const&);
33 BlockChangedOperation();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~BlockChangedOperation() /*override*/ = default;
39
40 virtual ::std::string_view getName() /*override*/;
41
42 virtual ::Scripting::Result_deprecated<void> _undo(::Editor::ServiceProviderCollection& services) /*override*/;
43
44 virtual ::Scripting::Result_deprecated<void> _redo(::Editor::ServiceProviderCollection& services) /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI explicit BlockChangedOperation(::std::vector<::Editor::Transactions::BlockChangedOperationData>&& blocks);
51
52 MCNAPI ::Scripting::Result_deprecated<void>
54
55 MCNAPI ::Scripting::Result_deprecated<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
64 MCNAPI ::Scripting::Result_deprecated<void> _setBlocks(::Level& level, ::BlockSource& region, bool isUndo) const;
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCNAPI static ::std::vector<::Editor::Transactions::BlockChangeIntentData>
71 createBlockChangeIntentFromLocation(::BlockSource const& region, ::BlockPos const& pos, bool includeAll);
72 // NOLINTEND
73
74public:
75 // static variables
76 // NOLINTBEGIN
77 MCNAPI static ::std::string const& DEFAULT_OPERATION_NAME();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCNAPI void* $ctor(::std::vector<::Editor::Transactions::BlockChangedOperationData>&& blocks);
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCNAPI ::std::string_view $getName();
90
91 MCNAPI ::Scripting::Result_deprecated<void> $_undo(::Editor::ServiceProviderCollection& services);
92
93 MCNAPI ::Scripting::Result_deprecated<void> $_redo(::Editor::ServiceProviderCollection& services);
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
104
105} // namespace Editor::Transactions
Definition BlockPos.h:21
Definition BlockSource.h:73
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 void * $ctor(::std::vector<::Editor::Transactions::BlockChangedOperationData > &&blocks)
MCAPI BlockChangedOperation(::std::vector<::Editor::Transactions::BlockChangedOperationData > &&blocks)
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:255
Definition BlockChangeIntentData.h:13
Definition BlockChangedOperationData.h:13
Definition Alias.h:14