LeviLamina
Loading...
Searching...
No Matches
RequestAbilityPacket.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/Packet.h"
8#include "mc/platform/Result.h"
9#include "mc/world/actor/player/AbilitiesIndex.h"
10
11// auto generated forward declare list
12// clang-format off
13class BinaryStream;
15// clang-format on
16
18public:
19 // RequestAbilityPacket inner types define
20 enum class Type : uchar {
21 Unset = 0,
22 Bool = 1,
23 Float = 2,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<1, 1, ::AbilitiesIndex> mAbility;
30 ::ll::TypedStorage<1, 1, ::RequestAbilityPacket::Type> mValueType;
31 ::ll::TypedStorage<4, 8, ::std::variant<bool, float>> mValue;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 1
38 virtual ::MinecraftPacketIds getId() const /*override*/;
39
40 // vIndex: 2
41 virtual ::std::string getName() const /*override*/;
42
43 // vIndex: 4
44 virtual void write(::BinaryStream& stream) const /*override*/;
45
46 // vIndex: 8
47 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
48
49 // vIndex: 9
50 virtual void writeVariant(::BinaryStream& stream) const;
51
52 // vIndex: 0
53 virtual ~RequestAbilityPacket() /*override*/ = default;
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI ::MinecraftPacketIds $getId() const;
66
67 MCAPI ::std::string $getName() const;
68
69 MCAPI void $write(::BinaryStream& stream) const;
70
71 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
72
73 MCAPI void $writeVariant(::BinaryStream& stream) const;
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition RequestAbilityPacket.h:17