LeviLamina
Loading...
Searching...
No Matches
MobEffectPacket.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/MobEffectPacketPayload.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(MobEffectPacket) {
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 ~MobEffectPacket() /*override*/ = default;
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI ::MinecraftPacketIds $getId() const;
84
85 MCAPI ::std::string $getName() const;
86
87 MCFOLD ::SerializationMode $getSerializationMode() const;
88
89 MCFOLD void $setSerializationMode(::SerializationMode mode);
90
91 MCAPI void $writeWithSerializationMode(
92 ::BinaryStream & stream,
93 ::cereal::ReflectionCtx const& reflectionCtx,
94 ::std::optional<::SerializationMode> overrideMode
95 ) const;
96
97 MCFOLD void $write(::BinaryStream & bitStream, ::cereal::ReflectionCtx const& reflectionCtx) const;
98
99 MCAPI void $write(::BinaryStream & stream) const;
100
101 MCAPI ::Bedrock::Result<void> $read(
102 ::ReadOnlyBinaryStream & bitStream,
103 ::cereal::ReflectionCtx const& reflectionCtx
104 );
105
106 MCFOLD bool $disallowBatching() const;
107
108 MCFOLD bool $isValid() const;
109
110 MCFOLD uint64 $getMaxSize() const;
111
112 MCAPI ::std::string $toString() const;
113
114 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream & stream);
115
116 MCAPI ::Bedrock::Result<void> $_read(
117 ::ReadOnlyBinaryStream & bitStream,
118 ::cereal::ReflectionCtx const& reflectionCtx
119 );
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftable();
126 // NOLINTEND
127}
128MC_NETWORK_PACKET_DECALARE_END
Definition BinaryStream.h:10
Definition ReadOnlyBinaryStream.h:8
STL namespace.