Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CompoundTagUpdaterNodeBuilder.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/move_only_function.h"
7#include "mc/util/CompoundTagUpdater.h"
8
9// auto generated forward declare list
10// clang-format off
13// clang-format on
14
15class CompoundTagUpdaterNodeBuilder {
16public:
17 // CompoundTagUpdaterNodeBuilder inner types declare
18 // clang-format off
19 struct NodeData;
20 // clang-format on
21
22 // CompoundTagUpdaterNodeBuilder inner types define
23 struct NodeData {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<1, 1, bool> mIsNameLiteral;
28 ::ll::TypedStorage<1, 1, bool> mChangesName;
29 ::ll::TypedStorage<8, 8, ::std::string const&> mName;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTagUpdater>> mUpdater;
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 NodeData& operator=(NodeData const&);
36 NodeData(NodeData const&);
37 NodeData();
38
39 public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI ~NodeData();
43 // NOLINTEND
44
45 public:
46 // destructor thunk
47 // NOLINTBEGIN
48 MCNAPI void $dtor();
49 // NOLINTEND
50 };
51
53
54public:
55 // member variables
56 // NOLINTBEGIN
57 ::ll::TypedStorage<1, 1, bool> mIsNameLiteral;
58 ::ll::TypedStorage<1, 1, bool> mEditsName;
59 ::ll::TypedStorage<8, 32, ::std::string> mName;
60 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTagUpdater>> mUpdater;
61 ::ll::TypedStorage<8, 8, ::CompoundTagUpdater::Node&> mUpdaterNode;
62 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void(::CompoundTagUpdaterNodeBuilder::NodeData)>> mInsert;
63 // NOLINTEND
64
65public:
66 // prevent constructor by default
67 CompoundTagUpdaterNodeBuilder& operator=(CompoundTagUpdaterNodeBuilder const&);
68 CompoundTagUpdaterNodeBuilder(CompoundTagUpdaterNodeBuilder const&);
69 CompoundTagUpdaterNodeBuilder();
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCNAPI ::CompoundTagUpdaterNodeBuilder _addChildNode();
75
76 MCNAPI ::CompoundTagUpdaterNodeBuilder&
77 edit(::std::string const& tagName, ::std::function<void(::CompoundTagEditHelper&)>&& update);
78
79 MCNAPI ::CompoundTagUpdaterNodeBuilder& match(::std::string const& tagName, ::std::string pattern);
80
81 MCNAPI ::CompoundTagUpdaterNodeBuilder& matchInteger(::std::string const& tagName, int64 value);
82
83 MCNAPI ::CompoundTagUpdaterNodeBuilder& matchLiteral(::std::string const& tagName, ::std::string pattern);
84
85 MCNAPI ::CompoundTagUpdaterNodeBuilder& popVisit();
86
87 MCNAPI ::CompoundTagUpdaterNodeBuilder& remove(::std::string const& tagName);
88
89 MCNAPI ::CompoundTagUpdaterNodeBuilder& rename(::std::string const& tagName, ::std::string const& newTagName);
90
91 MCNAPI ::CompoundTagUpdaterNodeBuilder&
92 tryEdit(::std::string const& tagName, ::std::function<void(::CompoundTagEditHelper&)>&& update);
93
94 MCNAPI ::CompoundTagUpdaterNodeBuilder& visit(::std::string const& tagName);
95
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCNAPI void $dtor();
103 // NOLINTEND
104};
Definition CompoundTagEditHelper.h:10
MCAPI::CompoundTagUpdaterNodeBuilder & tryEdit(::std::string const &tagName, ::std::function< void(::CompoundTagEditHelper &)> &&update)
MCAPI::CompoundTagUpdaterNodeBuilder & rename(::std::string const &tagName, ::std::string const &newTagName)
MCAPI::CompoundTagUpdaterNodeBuilder & remove(::std::string const &tagName)
MCAPI::CompoundTagUpdaterNodeBuilder _addChildNode()
MCAPI::CompoundTagUpdaterNodeBuilder & edit(::std::string const &tagName, ::std::function< void(::CompoundTagEditHelper &)> &&update)
MCAPI::CompoundTagUpdaterNodeBuilder & matchLiteral(::std::string const &tagName, ::std::string pattern)
MCAPI::CompoundTagUpdaterNodeBuilder & matchInteger(::std::string const &tagName, int64 value)
MCAPI::CompoundTagUpdaterNodeBuilder & match(::std::string const &tagName, ::std::string pattern)
MCAPI::CompoundTagUpdaterNodeBuilder & visit(::std::string const &tagName)
MCAPI::CompoundTagUpdaterNodeBuilder & popVisit()
Definition CompoundTagUpdater.h:11
Definition move_only_function.h:9
Definition CompoundTagUpdaterNodeBuilder.h:23