LeviLamina
Loading...
Searching...
No Matches
ModalFormRequestPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/Packet.h"
8#include "mc/network/packet/ModalFormRequestPacketPayload.h"
9#include "mc/network/packet/cerealize/core/SerializationMode.h"
10#include "mc/platform/Result.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class ModalFormRequestPacket : public ::ll::PayloadPacket<::ModalFormRequestPacketPayload> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SerializationMode> mSerializationMode;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
29
30public:
31 ModalFormRequestPacket(uint formId, ::std::string const& formJSON) : PayloadPacket(formId, formJSON) {}
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 1
37 virtual ::MinecraftPacketIds getId() const /*override*/;
38
39 // vIndex: 2
40 virtual ::std::string getName() const /*override*/;
41
42 // vIndex: 12
43 virtual ::SerializationMode getSerializationMode() const /*override*/;
44
45 // vIndex: 13
46 virtual void setSerializationMode(::SerializationMode mode) /*override*/;
47
48 // vIndex: 5
49 virtual void writeWithSerializationMode(
50 ::BinaryStream& stream,
51 ::cereal::ReflectionCtx const& reflectionCtx,
52 ::std::optional<::SerializationMode> overrideMode
53 ) const /*override*/;
54
55 // vIndex: 7
56 virtual void write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const /*override*/;
57
58 // vIndex: 6
59 virtual void write(::BinaryStream& stream) const /*override*/;
60
61 // vIndex: 9
62 virtual ::Bedrock::Result<void>
63 read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
64
65 // vIndex: 10
66 virtual bool disallowBatching() const /*override*/;
67
68 // vIndex: 11
69 virtual bool isValid() const /*override*/;
70
71 // vIndex: 3
72 virtual uint64 getMaxSize() const /*override*/;
73
74 // vIndex: 14
75 virtual ::std::string toString() const /*override*/;
76
77 // vIndex: 15
78 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
79
80 // vIndex: 16
81 virtual ::Bedrock::Result<void>
82 _read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
83
84 // vIndex: 0
85 virtual ~ModalFormRequestPacket() /*override*/;
86 // NOLINTEND
87
88public:
89 // member functions
90 // NOLINTBEGIN
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(::ModalFormRequestPacketPayload payload);
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCFOLD void $dtor();
104 // NOLINTEND
105
106public:
107 // virtual function thunks
108 // NOLINTBEGIN
109 MCFOLD ::MinecraftPacketIds $getId() const;
110
111 MCAPI ::std::string $getName() const;
112
113 MCFOLD ::SerializationMode $getSerializationMode() const;
114
115 MCFOLD void $setSerializationMode(::SerializationMode mode);
116
117 MCAPI void $writeWithSerializationMode(
118 ::BinaryStream& stream,
119 ::cereal::ReflectionCtx const& reflectionCtx,
120 ::std::optional<::SerializationMode> overrideMode
121 ) const;
122
123 MCFOLD void $write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const;
124
125 MCAPI void $write(::BinaryStream& stream) const;
126
127 MCAPI ::Bedrock::Result<void>
128 $read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx);
129
130 MCFOLD bool $disallowBatching() const;
131
132 MCFOLD bool $isValid() const;
133
134 MCFOLD uint64 $getMaxSize() const;
135
136 MCAPI ::std::string $toString() const;
137
138 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
139
140 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx);
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition BinaryStream.h:10
Definition ModalFormRequestPacket.h:19
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition Packet.h:213
Definition ModalFormRequestPacketPayload.h:5
Definition ReflectionCtx.h:11