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