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/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 ActorRuntimeID;
13class BinaryStream;
15class Vec3;
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 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 1
41 virtual ::MinecraftPacketIds getId() const /*override*/;
42
43 // vIndex: 2
44 virtual ::std::string getName() const /*override*/;
45
46 // vIndex: 4
47 virtual void write(::BinaryStream& stream) const /*override*/;
48
49 // vIndex: 8
50 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
51
52 // vIndex: 0
53 virtual ~InteractPacket() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI InteractPacket(::InteractPacket::Action action, ::ActorRuntimeID targetId, ::Vec3 const& pos);
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(::InteractPacket::Action action, ::ActorRuntimeID targetId, ::Vec3 const& pos);
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCFOLD void $dtor();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI ::MinecraftPacketIds $getId() const;
78
79 MCAPI ::std::string $getName() const;
80
81 MCAPI void $write(::BinaryStream& stream) const;
82
83 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCAPI static void** $vftable();
90 // NOLINTEND
91};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition InteractPacket.h:18
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10