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