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