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