LeviLamina
Loading...
Searching...
No Matches
ServerboundPackSettingChangePacket.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/ServerboundPackSettingChangePacketPayload.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 ServerboundPackSettingChangePacket : public ::ll::PayloadPacket<::ServerboundPackSettingChangePacketPayload> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SerializationMode> mSerializationMode;
24 // NOLINTEND
25
26#ifdef LL_PLAT_S
27#else // LL_PLAT_C
28public:
29 // prevent constructor by default
30 ServerboundPackSettingChangePacket();
31
32#endif
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ::MinecraftPacketIds getId() const /*override*/;
37
38 virtual ::std::string_view getName() const /*override*/;
39
40 virtual ::SerializationMode getSerializationMode() const /*override*/;
41
42 virtual void setSerializationMode(::SerializationMode mode) /*override*/;
43
44 virtual void writeWithSerializationMode(
45 ::BinaryStream& stream,
46 ::cereal::ReflectionCtx const& reflectionCtx,
47 ::std::optional<::SerializationMode> overrideMode
48 ) const /*override*/;
49
50 virtual void write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const /*override*/;
51
52 virtual void write(::BinaryStream& stream) const /*override*/;
53
54 virtual ::Bedrock::Result<void>
55 read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
56
57 virtual bool disallowBatching() const /*override*/;
58
59 virtual bool isValid() const /*override*/;
60
61 virtual uint64 getMaxSize() const /*override*/;
62
63 virtual ::std::string toString() const /*override*/;
64
65 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
66
67 virtual ::Bedrock::Result<void>
68 _read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) /*override*/;
69
70#ifdef LL_PLAT_S
71 virtual ~ServerboundPackSettingChangePacket() /*override*/ = default;
72#else // LL_PLAT_C
73 virtual ~ServerboundPackSettingChangePacket() /*override*/;
74#endif
75
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81#ifdef LL_PLAT_S
82 MCAPI ServerboundPackSettingChangePacket();
83#endif
84
85#ifdef LL_PLAT_C
86 MCAPI explicit ServerboundPackSettingChangePacket(::ServerboundPackSettingChangePacketPayload payload);
87#endif
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93#ifdef LL_PLAT_S
94 MCAPI void* $ctor();
95#endif
96
97#ifdef LL_PLAT_C
98 MCAPI void* $ctor(::ServerboundPackSettingChangePacketPayload payload);
99#endif
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI ::MinecraftPacketIds $getId() const;
112
113 MCAPI ::std::string_view $getName() const;
114
115 MCFOLD ::SerializationMode $getSerializationMode() const;
116
117 MCFOLD void $setSerializationMode(::SerializationMode mode);
118
119 MCAPI void $writeWithSerializationMode(
120 ::BinaryStream& stream,
121 ::cereal::ReflectionCtx const& reflectionCtx,
122 ::std::optional<::SerializationMode> overrideMode
123 ) const;
124
125 MCFOLD void $write(::BinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx) const;
126
127 MCAPI void $write(::BinaryStream& stream) const;
128
129 MCAPI ::Bedrock::Result<void>
130 $read(::ReadOnlyBinaryStream& bitStream, ::cereal::ReflectionCtx const& reflectionCtx);
131
132 MCFOLD bool $disallowBatching() const;
133
134 MCFOLD bool $isValid() const;
135
136 MCFOLD uint64 $getMaxSize() const;
137
138 MCAPI ::std::string $toString() const;
139
140 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
141
142 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream, ::cereal::ReflectionCtx const& reflectionCtx);
143
144
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152};
Definition BinaryStream.h:11
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition Packet.h:200
Definition ReflectionCtx.h:11