LeviLamina
Loading...
Searching...
No Matches
InventoryContentPacket.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;
17class Player;
19// clang-format on
20
21class InventoryContentPacket : public ::Packet {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, ::ContainerID> mInventoryId;
26 ::ll::TypedStorage<4, 12, ::FullContainerName> mFullContainerName;
27 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mStorageItem;
28 ::ll::TypedStorage<8, 24, ::std::vector<::NetworkItemStackDescriptor>> mSlots;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 InventoryContentPacket();
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 ~InventoryContentPacket() /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI InventoryContentPacket(
53 ::ContainerID id,
54 ::std::vector<::ItemStack> const& items,
55 ::FullContainerName const& fullContainerName,
56 ::ItemStack const& storageItem
57 );
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static ::InventoryContentPacket fromPlayerInventoryId(::ContainerID id, ::Player& player);
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(
70 ::ContainerID id,
71 ::std::vector<::ItemStack> const& items,
72 ::FullContainerName const& fullContainerName,
73 ::ItemStack const& storageItem
74 );
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::MinecraftPacketIds $getId() const;
87
88 MCAPI ::std::string $getName() const;
89
90 MCAPI void $write(::BinaryStream& stream) const;
91
92 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
93
94
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftable();
101 // NOLINTEND
102};
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition ItemStack.h:26
Definition Player.h:125
Definition ReadOnlyBinaryStream.h:8
Definition FullContainerName.h:8