LeviLamina
Loading...
Searching...
No Matches
LockingFillingContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/ContainerType.h"
7#include "mc/world/inventory/FillingContainer.h"
8
9// auto generated forward declare list
10// clang-format off
11class ItemStack;
12class ListTag;
13class SaveContext;
14namespace Bedrock::Threading { class SharedRecursiveMutex; }
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex>> mContainerContextMutex;
22 ::ll::TypedStorage<4, 4, int> mWeightInStorageItem;
23 ::ll::TypedStorage<1, 1, bool> mIsClientSide;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 46
30 virtual int clearInventory(int resizeTo) /*override*/;
31
32 // vIndex: 42
33 virtual void swapSlots(int from, int to) /*override*/;
34
35 // vIndex: 13
36 virtual void setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced) /*override*/;
37
38 // vIndex: 47
39 virtual ::std::unique_ptr<::ListTag> saveToTag(::SaveContext const& saveContext) const /*override*/;
40
41 // vIndex: 7
42 virtual ::ItemStack const& getItem(int slot) const /*override*/;
43
44 // vIndex: 2
45 virtual void serverInitItemStackIds(
46 int containerSlot,
47 int count,
48 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
49 ) /*override*/;
50
51 // vIndex: 49
52 virtual void
53 _trySetInSlot(::ItemStack& item, int const& slot, int const& inventorySize, int& backCompatOffset) /*override*/;
54
55 // vIndex: 0
56 virtual ~LockingFillingContainer() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
63 int numTotalSlots,
64 ::SharedTypes::Legacy::ContainerType containerType,
65 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
66 bool isClientSide
67 );
68
69 MCAPI int getWeightInStorageItem() const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(
76 int numTotalSlots,
77 ::SharedTypes::Legacy::ContainerType containerType,
78 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
79 bool isClientSide
80 );
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCFOLD int $clearInventory(int resizeTo);
93
94 MCFOLD void $swapSlots(int from, int to);
95
96 MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
97
98 MCAPI ::std::unique_ptr<::ListTag> $saveToTag(::SaveContext const& saveContext) const;
99
100 MCAPI ::ItemStack const& $getItem(int slot) const;
101
102 MCAPI void $serverInitItemStackIds(
103 int containerSlot,
104 int count,
105 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
106 );
107
108 MCAPI void $_trySetInSlot(::ItemStack& item, int const& slot, int const& inventorySize, int& backCompatOffset);
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition FillingContainer.h:16
Definition ItemStack.h:25
Definition ListTag.h:12
Definition LockingFillingContainer.h:17
Definition SaveContext.h:5