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