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 MCNAPI int getWeightInStorageItem() const;
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCNAPI 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 MCNAPI int $clearInventory(int resizeTo);
91
92 MCNAPI void $swapSlots(int from, int to);
93
94 MCNAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
95
96 MCNAPI ::std::unique_ptr<::ListTag> $saveToTag(::SaveContext const& saveContext) const;
97
98 MCNAPI ::ItemStack const& $getItem(int slot) const;
99
101 int containerSlot,
102 int count,
103 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
104 );
105
106 MCNAPI void $_trySetInSlot(::ItemStack& item, int const& slot, int const& inventorySize, int& backCompatOffset);
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCNAPI static void** $vftable();
113 // NOLINTEND
114};
Definition FillingContainer.h:16
Definition ItemStack.h:25
Definition ListTag.h:12
Definition LockingFillingContainer.h:17
MCAPI void $swapSlots(int from, int to)
MCAPI ::std::unique_ptr<::ListTag > $saveToTag(::SaveContext const &saveContext) const
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI int getWeightInStorageItem() const
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void * $ctor(int numTotalSlots, ::SharedTypes::Legacy::ContainerType containerType, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex > serializationMutex, bool isClientSide)
MCAPI LockingFillingContainer(int numTotalSlots, ::SharedTypes::Legacy::ContainerType containerType, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex > serializationMutex, bool isClientSide)
static MCAPI void ** $vftable()
MCAPI void $_trySetInSlot(::ItemStack &item, int const &slot, int const &inventorySize, int &backCompatOffset)
MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const &item, bool forceBalanced)
MCAPI int $clearInventory(int resizeTo)
Definition SaveContext.h:5