LeviLamina
Loading...
Searching...
No Matches
DynamicContainerTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/world/containers/FullContainerName.h"
8
9// auto generated forward declare list
10// clang-format off
14class ItemStack;
17struct ContainerOwner;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 16, ::WeakRef<::IContainerRegistryAccess>> mContainerRegistryAccess;
25 ::ll::TypedStorage<8, 16, ::WeakRef<::IContainerRegistryTracker>> mContainerRegistryManager;
26 ::ll::TypedStorage<8, 64, ::std::unordered_map<::FullContainerName, ::std::unique_ptr<::DynamicContainerManager>>>
27 mTrackedContainers;
28 ::ll::TypedStorage<8, 64, ::std::unordered_set<::FullContainerName>> mMarkedReachable;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
34
35public:
36 // member functions
37 // NOLINTBEGIN
41 );
42
43 MCAPI ::std::optional<::ItemStack> _initializeStorageItem(
44 ::ItemStack const& item,
45 ::StorageItemComponent* storageItemComponent,
46 ::StorageWeightLimitItemComponent* storageWeightLimitItemComponent
47 );
48
49 MCAPI void _markAux(::ItemStack const& item, int depth);
50
51 MCAPI void _retrackRecursiveAux(::ItemStack const& item, int depth);
52
53 MCAPI ::std::pair<::FullContainerName, ::ItemStack> _tryInitID(::ItemStack const& item) const;
54
55 MCAPI void giveContainerLifetimes(::ContainerOwner& containerOwner) const;
56
57 MCAPI ::std::optional<::ItemStack> tryTrackContainer(::ItemStack const& item);
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void*
65 // NOLINTEND
66};
Definition DynamicContainerManager.h:17
Definition DynamicContainerTracker.h:20
Definition IContainerRegistryAccess.h:14
Definition IContainerRegistryTracker.h:15
Definition ItemStack.h:23
Definition StorageItemComponent.h:29
Definition StorageWeightLimitItemComponent.h:16
Definition WeakRef.h:8
Definition ContainerOwner.h:10