LeviLamina
Loading...
Searching...
No Matches
NetworkID.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/p2p/NetworkID.h"
7#include "mc/deps/nether_net/realms/NetworkID.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Json { class Value; }
12// clang-format on
13
14namespace NetherNet {
15
16struct NetworkID
17: public ::std::variant<::std::monostate, ::NetherNet::P2P::NetworkID, ::NetherNet::Realms::NetworkID> {
18public:
19 std::strong_ordering operator<=>(NetworkID const& other) const = default;
20
21public:
22 // prevent constructor by default
23 NetworkID();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI explicit NetworkID(::std::string const& str);
29
30 MCAPI explicit NetworkID(::Json::Value const& value);
31
32 MCAPI bool isValid() const;
33
34 MCAPI ::std::string toCorrelationId() const;
35
36#ifdef LL_PLAT_C
37 MCAPI ::Json::Value toJson() const;
38#endif
39
40 MCAPI ::std::string toString() const;
41 // NOLINTEND
42
43public:
44 // constructor thunks
45 // NOLINTBEGIN
46 MCAPI void* $ctor(::std::string const& str);
47
48 MCAPI void* $ctor(::Json::Value const& value);
49 // NOLINTEND
50};
51
52} // namespace NetherNet
Definition Value.h:16