Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
InventorySlotPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/containers/FullContainerName.h"
8#include "mc/world/item/NetworkItemStackDescriptor.h"
9
10// auto generated forward declare list
11// clang-format off
12class ItemStack;
13// clang-format on
14
15struct InventorySlotPacketPayload {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<1, 1, ::ContainerID> mInventoryId;
20 ::ll::TypedStorage<4, 4, uint> mSlot;
21 ::ll::TypedStorage<4, 16, ::std::optional<::FullContainerName>> mFullContainerName;
22 ::ll::TypedStorage<8, 104, ::std::optional<::NetworkItemStackDescriptor>> mStorageItem;
23 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 InventorySlotPacketPayload& operator=(InventorySlotPacketPayload const&);
29 InventorySlotPacketPayload(InventorySlotPacketPayload const&);
30 InventorySlotPacketPayload();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI InventorySlotPacketPayload(::InventorySlotPacketPayload&&);
36
37 MCAPI InventorySlotPacketPayload(::ContainerID id, int slot, ::ItemStack const& item);
38
39 MCAPI InventorySlotPacketPayload(
40 ::ContainerID id,
41 int slot,
42 ::ItemStack const& item,
43 ::FullContainerName const& fullContainerName,
44 ::ItemStack const& storageItem
45 );
46
47 MCAPI ~InventorySlotPacketPayload();
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCAPI void* $ctor(::InventorySlotPacketPayload&&);
54
55 MCAPI void* $ctor(::ContainerID id, int slot, ::ItemStack const& item);
56
57 MCAPI void* $ctor(
58 ::ContainerID id,
59 int slot,
60 ::ItemStack const& item,
61 ::FullContainerName const& fullContainerName,
62 ::ItemStack const& storageItem
63 );
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71};
Definition ItemStack.h:26
Definition FullContainerName.h:8