LeviLamina
Loading...
Searching...
No Matches
EditorBlockPaletteServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockLegacy;
13class HashedString;
14namespace Bedrock::PubSub { class Subscription; }
15namespace Editor { struct EditorBlockPalette; }
16namespace Editor { struct EditorBlockPaletteEventActivePaletteChanged; }
17namespace Editor { struct EditorBlockPaletteEventItemUpdated; }
18namespace Editor { struct EditorBlockPaletteEventPaletteRemoved; }
19namespace Editor { struct EditorBlockPaletteEventPaletteUpdated; }
20namespace Editor { struct EditorBlockPaletteEventSelectedItemIndexChanged; }
21namespace Editor { struct ProbabilityBlockPaletteItem; }
22namespace Editor { struct SimpleBlockPaletteItem; }
23// clang-format on
24
25namespace Editor::Services {
26
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 0
32 virtual ~EditorBlockPaletteServiceProvider() = default;
33
34 // vIndex: 1
35 virtual ::std::vector<::std::shared_ptr<::Editor::EditorBlockPalette>> const& getPaletteList() const = 0;
36
37 // vIndex: 2
38 virtual ::Editor::EditorBlockPalette const& getActivePalette() const = 0;
39
40 // vIndex: 3
41 virtual void addOrReplacePalette(::Editor::EditorBlockPalette const&) = 0;
42
43 // vIndex: 4
44 virtual ::Scripting::Result<void> removePalette(::HashedString const&) = 0;
45
46 // vIndex: 5
47 virtual ::Scripting::Result<void> setActivePalette(::HashedString const&) = 0;
48
49 // vIndex: 6
50 virtual ::Scripting::Result<void> setSelectedPaletteItemIndex(int) = 0;
51
52 // vIndex: 7
53 virtual int getSelectedPaletteItemIndex() const = 0;
54
55 // vIndex: 8
56 virtual ::Scripting::Result<void>
57 setPaletteItem(::HashedString const&, int, ::std::variant<::Editor::SimpleBlockPaletteItem, ::Editor::ProbabilityBlockPaletteItem> const&) = 0;
58
59 // vIndex: 9
60 virtual ::Scripting::Result<void> pickBlock(::Block const&) = 0;
61
62 // vIndex: 10
63 virtual ::Scripting::Result_deprecated<::BlockLegacy const*> getSelectedBlockType() const = 0;
64
65 // vIndex: 11
66 virtual ::std::vector<::std::string> getPaletteIdList() const = 0;
67
68 // vIndex: 12
69 virtual ::std::optional<::Editor::EditorBlockPalette> getPalette(::HashedString const&) const = 0;
70
71 // vIndex: 13
72 virtual ::Scripting::Result_deprecated<
73 ::std::variant<::Editor::SimpleBlockPaletteItem, ::Editor::ProbabilityBlockPaletteItem>>
74 getPaletteItem(::HashedString const&, int) const = 0;
75
76 // vIndex: 14
77 virtual void forEachBlockType(::std::function<void(::BlockLegacy const&, bool)>) const = 0;
78
79 // vIndex: 15
80 virtual ::Bedrock::PubSub::Subscription
81 registerEventListener(::std::function<void(::std::variant<
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCAPI static void** $vftable();
105 // NOLINTEND
106};
107
108} // namespace Editor::Services
Definition BlockLegacy.h:88
Definition Block.h:36
Definition EditorBlockPaletteServiceProvider.h:27
Definition HashedString.h:5
Definition EditorBlockPaletteEventActivePaletteChanged.h:7
Definition EditorBlockPaletteEventItemUpdated.h:7
Definition EditorBlockPaletteEventPaletteRemoved.h:7
Definition EditorBlockPaletteEventPaletteUpdated.h:7
Definition EditorBlockPaletteEventSelectedItemIndexChanged.h:7
Definition EditorBlockPalette.h:15