LeviLamina
Loading...
Searching...
No Matches
MobEquipmentPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorRuntimeID.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10#include "mc/world/ContainerID.h"
11#include "mc/world/item/NetworkItemStackDescriptor.h"
12
13// auto generated forward declare list
14// clang-format off
15class BinaryStream;
16class ItemStack;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
25 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
26 ::ll::TypedStorage<4, 4, int> mSlot;
27 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
28 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
29 ::ll::TypedStorage<1, 1, uchar> mSlotByte;
30 ::ll::TypedStorage<1, 1, uchar> mSelectedSlotByte;
31 ::ll::TypedStorage<1, 1, uchar> mContainerIdByte;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 MobEquipmentPacket& operator=(MobEquipmentPacket const&);
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 1
44 virtual ::MinecraftPacketIds getId() const /*override*/;
45
46 // vIndex: 2
47 virtual ::std::string getName() const /*override*/;
48
49 // vIndex: 4
50 virtual void write(::BinaryStream& stream) const /*override*/;
51
52 // vIndex: 8
53 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
54
55 // vIndex: 0
56 virtual ~MobEquipmentPacket() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
63
65 ::ActorRuntimeID runtimeId,
67 int slot,
68 int selectedSlot,
69 ::ContainerID containerId
70 );
71
73 ::ActorRuntimeID runtimeId,
74 ::ItemStack const& item,
75 int slot,
76 int selectedSlot,
77 ::ContainerID containerId
78 );
79
80 MCAPI void _convertFromBytes();
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(::MobEquipmentPacket&&);
87
88 MCAPI void* $ctor(
89 ::ActorRuntimeID runtimeId,
91 int slot,
92 int selectedSlot,
93 ::ContainerID containerId
94 );
95
96 MCAPI void*
97 $ctor(::ActorRuntimeID runtimeId, ::ItemStack const& item, int slot, int selectedSlot, ::ContainerID containerId);
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCAPI void $dtor();
104 // NOLINTEND
105
106public:
107 // virtual function thunks
108 // NOLINTBEGIN
109 MCAPI ::MinecraftPacketIds $getId() const;
110
111 MCAPI ::std::string $getName() const;
112
113 MCAPI void $write(::BinaryStream& stream) const;
114
115 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition ItemStack.h:25
Definition MobEquipmentPacket.h:20
static MCAPI void ** $vftable()
Definition NetworkItemStackDescriptor.h:18
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8