LeviLamina
Loading...
Searching...
No Matches
InventorySlotPacket.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.h"
8#include "mc/platform/Result.h"
9#include "mc/world/ContainerID.h"
10#include "mc/world/containers/FullContainerName.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
20class InventorySlotPacket : public ::Packet {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, ::ContainerID> mInventoryId;
25 ::ll::TypedStorage<4, 12, ::FullContainerName> mFullContainerName;
26 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mStorageItem;
27 ::ll::TypedStorage<4, 4, uint> mSlot;
28 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 InventorySlotPacket();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::MinecraftPacketIds getId() const /*override*/;
39
40 virtual ::std::string getName() const /*override*/;
41
42 virtual void write(::BinaryStream& stream) const /*override*/;
43
44 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
45
46 virtual ~InventorySlotPacket() /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI InventorySlotPacket(::ContainerID id, uint slot, ::ItemStack const& item);
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::ContainerID id, uint slot, ::ItemStack const& item);
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCFOLD ::MinecraftPacketIds $getId() const;
71
72 MCAPI ::std::string $getName() const;
73
74 MCAPI void $write(::BinaryStream& stream) const;
75
76 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition ItemStack.h:26
Definition ReadOnlyBinaryStream.h:8