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&);
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 1
52 virtual ::MinecraftPacketIds getId() const /*override*/;
53
54 // vIndex: 2
55 virtual ::std::string getName() const /*override*/;
56
57 // vIndex: 4
58 virtual void write(::BinaryStream& stream) const /*override*/;
59
60 // vIndex: 8
61 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
62
63 // vIndex: 0
64 virtual ~SetTitlePacket() /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI SetTitlePacket(::SetTitlePacket const&);
71
72 MCAPI explicit SetTitlePacket(::SetTitlePacket::TitleType type);
73
74 MCAPI SetTitlePacket(int fadeInTime, int stayTime, int fadeOutTime);
75
76 MCAPI SetTitlePacket(
77 ::SetTitlePacket::TitleType type,
78 ::std::string const& titleText,
79 ::std::optional<::std::string> filteredTitleText
80 );
81
82 MCAPI ::SetTitlePacket& operator=(::SetTitlePacket&&);
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(::SetTitlePacket const&);
89
90 MCAPI void* $ctor(::SetTitlePacket::TitleType type);
91
92 MCAPI void* $ctor(int fadeInTime, int stayTime, int fadeOutTime);
93
94 MCAPI void* $ctor(
95 ::SetTitlePacket::TitleType type,
96 ::std::string const& titleText,
97 ::std::optional<::std::string> filteredTitleText
98 );
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCAPI ::MinecraftPacketIds $getId() const;
111
112 MCAPI ::std::string $getName() const;
113
114 MCAPI void $write(::BinaryStream& stream) const;
115
116 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCAPI static void** $vftable();
123 // NOLINTEND
124};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition SetTitlePacket.h:16