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/NetworkBlockPosition.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13class BinaryStream;
15class Vec3;
16// clang-format on
17
18class PlaySoundPacket : public ::Packet {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mName;
23 ::ll::TypedStorage<4, 12, ::NetworkBlockPosition> mPos;
24 ::ll::TypedStorage<4, 4, float> mVolume;
25 ::ll::TypedStorage<4, 4, float> mPitch;
26 // NOLINTEND
27
28public:
29 // 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: 4
42 virtual void write(::BinaryStream& stream) const /*override*/;
43
44 // vIndex: 8
45 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
46
47 // vIndex: 0
48 virtual ~PlaySoundPacket() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI PlaySoundPacket(::std::string name, ::Vec3 const& pos, float volume, float pitch);
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::std::string name, ::Vec3 const& pos, float volume, float pitch);
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCFOLD void $dtor();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI ::MinecraftPacketIds $getId() const;
73
74 MCAPI ::std::string $getName() const;
75
76 MCAPI void $write(::BinaryStream& stream) const;
77
78 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition PlaySoundPacket.h:18
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10