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