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