LeviLamina
Loading...
Searching...
No Matches
SetTitlePacket.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
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
14// clang-format on
15
16class SetTitlePacket : public ::Packet {
17public:
18 // SetTitlePacket inner types define
19 enum class TitleType : int {
20 Clear = 0,
21 Reset = 1,
22 Title = 2,
23 Subtitle = 3,
24 Actionbar = 4,
25 Times = 5,
26 TitleTextObject = 6,
27 SubtitleTextObject = 7,
28 ActionbarTextObject = 8,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<4, 4, ::SetTitlePacket::TitleType> mType;
35 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
36 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredTitleText;
37 ::ll::TypedStorage<4, 4, int> mFadeInTime;
38 ::ll::TypedStorage<4, 4, int> mStayTime;
39 ::ll::TypedStorage<4, 4, int> mFadeOutTime;
40 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
41 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 SetTitlePacket& operator=(SetTitlePacket const&);
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 1
53 virtual ::MinecraftPacketIds getId() const /*override*/;
54
55 // vIndex: 2
56 virtual ::std::string getName() const /*override*/;
57
58 // vIndex: 4
59 virtual void write(::BinaryStream& stream) const /*override*/;
60
61 // vIndex: 8
62 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
63
64 // vIndex: 0
65 virtual ~SetTitlePacket() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI SetTitlePacket(::SetTitlePacket const&);
72
73 MCAPI explicit SetTitlePacket(::SetTitlePacket::TitleType type);
74
75 MCAPI SetTitlePacket(int fadeInTime, int stayTime, int fadeOutTime);
76
77 MCAPI SetTitlePacket(
78 ::SetTitlePacket::TitleType type,
79 ::std::string const& titleText,
80 ::std::optional<::std::string> filteredTitleText
81 );
82
83 MCAPI ::SetTitlePacket& operator=(::SetTitlePacket&&);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(::SetTitlePacket const&);
90
91 MCAPI void* $ctor(::SetTitlePacket::TitleType type);
92
93 MCAPI void* $ctor(int fadeInTime, int stayTime, int fadeOutTime);
94
95 MCAPI void* $ctor(
96 ::SetTitlePacket::TitleType type,
97 ::std::string const& titleText,
98 ::std::optional<::std::string> filteredTitleText
99 );
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI ::MinecraftPacketIds $getId() const;
112
113 MCAPI ::std::string $getName() const;
114
115 MCAPI void $write(::BinaryStream& stream) const;
116
117 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition SetTitlePacket.h:16
static MCAPI void ** $vftable()