LeviLamina
Loading...
Searching...
No Matches
InteractPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/legacy/ActorRuntimeID.h"
8#include "mc/network/MinecraftPacketIds.h"
9#include "mc/network/packet/Packet.h"
10#include "mc/platform/Result.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
16// clang-format on
17
18class InteractPacket : public ::Packet {
19public:
20 // InteractPacket inner types define
21 enum class Action : uchar {
22 Invalid = 0,
23 StopRiding = 3,
24 InteractUpdate = 4,
25 NpcOpen = 5,
26 OpenInventory = 6,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<1, 1, ::InteractPacket::Action> mAction;
33 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mTargetId;
34 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 1
45 virtual ::MinecraftPacketIds getId() const /*override*/;
46
47 // vIndex: 2
48 virtual ::std::string getName() const /*override*/;
49
50 // vIndex: 4
51 virtual void write(::BinaryStream& stream) const /*override*/;
52
53 // vIndex: 8
54 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
55
56 // vIndex: 0
57 virtual ~InteractPacket() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI InteractPacket(::InteractPacket::Action action, ::ActorRuntimeID targetId, ::Vec3 const& pos);
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(::InteractPacket::Action action, ::ActorRuntimeID targetId, ::Vec3 const& pos);
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCFOLD void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI ::MinecraftPacketIds $getId() const;
82
83 MCAPI ::std::string $getName() const;
84
85 MCAPI void $write(::BinaryStream& stream) const;
86
87 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition InteractPacket.h:18
static MCAPI void ** $vftable()
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10