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 // prevent constructor by default
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 49
34 virtual int clearInventory(int resizeTo) /*override*/;
35
36 // vIndex: 45
37 virtual void swapSlots(int from, int to) /*override*/;
38
39 // vIndex: 13
40 virtual void setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced) /*override*/;
41
42 // vIndex: 50
43 virtual ::std::unique_ptr<::ListTag> saveToTag(::SaveContext const& saveContext) const /*override*/;
44
45 // vIndex: 7
46 virtual ::ItemStack const& getItem(int slot) const /*override*/;
47
48 // vIndex: 2
49 virtual void serverInitItemStackIds(
50 int containerSlot,
51 int count,
52 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
53 ) /*override*/;
54
55 // vIndex: 52
56 virtual void
57 _trySetInSlot(::ItemStack& item, int const& slot, int const& inventorySize, int& backCompatOffset) /*override*/;
58
59 // vIndex: 0
60 virtual ~LockingFillingContainer() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
67 int numTotalSlots,
68 ::SharedTypes::Legacy::ContainerType containerType,
69 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
70 bool isClientSide
71 );
72
73 MCAPI int getWeightInStorageItem() const;
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(
80 int numTotalSlots,
81 ::SharedTypes::Legacy::ContainerType containerType,
82 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
83 bool isClientSide
84 );
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD int $clearInventory(int resizeTo);
91
92 MCFOLD void $swapSlots(int from, int to);
93
94 MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
95
96 MCAPI ::std::unique_ptr<::ListTag> $saveToTag(::SaveContext const& saveContext) const;
97
98 MCAPI ::ItemStack const& $getItem(int slot) const;
99
100 MCAPI void $serverInitItemStackIds(
101 int containerSlot,
102 int count,
103 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
104 );
105
106 MCAPI void $_trySetInSlot(::ItemStack& item, int const& slot, int const& inventorySize, int& backCompatOffset);
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCAPI static void** $vftable();
113 // NOLINTEND
114};
Definition FillingContainer.h:16
Definition ItemStack.h:25
Definition ListTag.h:12
Definition LockingFillingContainer.h:17
Definition SaveContext.h:5