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