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 // virtual functions
33 // NOLINTBEGIN
34 virtual ::MinecraftPacketIds getId() const /*override*/;
35
36 virtual ::std::string_view getName() const /*override*/;
37
38 virtual void write(::BinaryStream& stream) const /*override*/;
39
40 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI InventoryContentPacket();
47
48 MCAPI InventoryContentPacket(::ContainerID id, ::std::vector<::ItemStack> const& items);
49
50 MCAPI InventoryContentPacket(
51 ::ContainerID id,
52 ::std::vector<::ItemStack> const& items,
53 ::FullContainerName const& fullContainerName,
54 ::ItemStack const& storageItem
55 );
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static ::InventoryContentPacket fromPlayerInventoryId(::ContainerID id, ::Player& player);
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor();
68
69 MCAPI void* $ctor(::ContainerID id, ::std::vector<::ItemStack> const& items);
70
71 MCAPI void* $ctor(
72 ::ContainerID id,
73 ::std::vector<::ItemStack> const& items,
74 ::FullContainerName const& fullContainerName,
75 ::ItemStack const& storageItem
76 );
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::MinecraftPacketIds $getId() const;
83
84 MCAPI ::std::string_view $getName() const;
85
86 MCAPI void $write(::BinaryStream& stream) const;
87
88 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition ItemStack.h:35
Definition Player.h:136
Definition ReadOnlyBinaryStream.h:8
Definition FullContainerName.h:8