LeviLamina
Loading...
Searching...
No Matches
ServerSettingsResponsePacket.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/ServerSettingsResponsePacketPayload.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 ServerSettingsResponsePacket : public ::ll::PayloadPacket<::ServerSettingsResponsePacketPayload> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SerializationMode> mSerializationMode;
24 // NOLINTEND
25public:
26 ServerSettingsResponsePacket(uint formId, ::std::string const& formJSON) : PayloadPacket(formId, formJSON) {}
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 1
32 virtual ::MinecraftPacketIds getId() const /*override*/;
33
34 // vIndex: 2
35 virtual ::std::string getName() const /*override*/;
36
37 // vIndex: 12
38 virtual ::SerializationMode getSerializationMode() const /*override*/;
39
40 // vIndex: 13
41 virtual void setSerializationMode(::SerializationMode mode) /*override*/;
42
43 // vIndex: 5
44 virtual void writeWithSerializationMode(
45 ::BinaryStream& stream,
46 ::cereal::ReflectionCtx const& reflectionCtx,
47 ::std::optional<::SerializationMode> overrideMode
48 ) const /*override*/;
49
50 // vIndex: 7
51 virtual void write(::BinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) const /*override*/;
52
53 // vIndex: 6
54 virtual void write(::BinaryStream& stream) const /*override*/;
55
56 // vIndex: 9
57 virtual ::Bedrock::Result<void>
58 read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
59
60 // vIndex: 10
61 virtual bool disallowBatching() const /*override*/;
62
63 // vIndex: 11
64 virtual bool isValid() const /*override*/;
65
66 // vIndex: 3
67 virtual uint64 getMaxSize() const /*override*/;
68
69 // vIndex: 14
70 virtual ::std::string toString() const /*override*/;
71
72 // vIndex: 15
73 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
74
75 // vIndex: 16
76 virtual ::Bedrock::Result<void>
77 _read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
78
79 // vIndex: 0
80 virtual ~ServerSettingsResponsePacket() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::MinecraftPacketIds $getId() const;
87
88 MCAPI ::std::string $getName() const;
89
90 MCFOLD ::SerializationMode $getSerializationMode() const;
91
92 MCFOLD void $setSerializationMode(::SerializationMode mode);
93
94 MCAPI void $writeWithSerializationMode(
95 ::BinaryStream& stream,
96 ::cereal::ReflectionCtx const& reflectionCtx,
97 ::std::optional<::SerializationMode> overrideMode
98 ) const;
99
100 MCFOLD void $write(::BinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) const;
101
102 MCAPI void $write(::BinaryStream& stream) const;
103
104 MCAPI ::Bedrock::Result<void>
105 $read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx);
106
107 MCFOLD bool $disallowBatching() const;
108
109 MCFOLD bool $isValid() const;
110
111 MCFOLD uint64 $getMaxSize() const;
112
113 MCAPI ::std::string $toString() const;
114
115 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
116
117 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx);
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition BinaryStream.h:10
Definition ReadOnlyBinaryStream.h:8
Definition ServerSettingsResponsePacket.h:19
static MCAPI void ** $vftable()
Definition Packet.h:213
Definition ReflectionCtx.h:11