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/util/CompoundTagUpdater.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
13class CompoundTagUpdaterNodeBuilder {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 8, ::CompoundTagUpdater::Node&> mUpdaterNode;
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 CompoundTagUpdaterNodeBuilder& operator=(CompoundTagUpdaterNodeBuilder const&);
23 CompoundTagUpdaterNodeBuilder(CompoundTagUpdaterNodeBuilder const&);
24 CompoundTagUpdaterNodeBuilder();
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI ::CompoundTagUpdaterNodeBuilder& addCompound(::std::string const& tagName);
30
31 MCAPI ::CompoundTagUpdaterNodeBuilder&
32 edit(::std::string const& tagName, ::std::function<void(::CompoundTagEditHelper&)>&& update);
33
34 MCAPI void fork(uint64 size, ::std::function<void(::CompoundTagUpdaterNodeBuilder&, uint64)>&& function);
35
36 MCAPI ::CompoundTagUpdaterNodeBuilder& match(::std::string const& tagName, ::std::string pattern);
37
38 MCAPI ::CompoundTagUpdaterNodeBuilder& matchInteger(::std::string const& tagName, int64 value);
39
40 MCAPI ::CompoundTagUpdaterNodeBuilder& matchLiteral(::std::string const& tagName, ::std::string pattern);
41
42 MCAPI ::CompoundTagUpdaterNodeBuilder& popVisit();
43
44 MCAPI ::CompoundTagUpdaterNodeBuilder& remove(::std::string const& tagName);
45
46 MCAPI ::CompoundTagUpdaterNodeBuilder& rename(::std::string const& tagName, ::std::string const& newTagName);
47
48 MCAPI ::CompoundTagUpdaterNodeBuilder&
49 tryEdit(::std::string const& tagName, ::std::function<void(::CompoundTagEditHelper&)>&& update);
50
51 MCAPI ::CompoundTagUpdaterNodeBuilder& visit(::std::string const& tagName);
52 // NOLINTEND
53};
Definition CompoundTagEditHelper.h:11