LeviLamina
Loading...
Searching...
No Matches
StorageItemComponent.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/item/components/NetworkedItemComponent.h"
8#include "mc/world/level/storage/AllExperiments.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
14class ItemDescriptor;
15class ItemStack;
16class ListTag;
17class Player;
18class SaveContext;
19class SemVersion;
21namespace Bedrock::PubSub { class Subscription; }
22namespace cereal { struct ReflectionCtx; }
23// clang-format on
24
25class StorageItemComponent : public ::NetworkedItemComponent<::StorageItemComponent> {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, int> mNumSlots;
30 ::ll::TypedStorage<1, 1, bool> mAllowNestedStorageItem;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mBannedItems;
32 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mAllowedItems;
33 ::ll::TypedStorage<8, 16, ::WeakRef<::IDynamicContainerSerialization>> mContainerSerialization;
34 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
35 // NOLINTEND
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 7
41 virtual void _initializeComponent() /*override*/;
42
43 // vIndex: 0
44 virtual ~StorageItemComponent() /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI ::std::unique_ptr<::ListTag>
51 serializeStorageItem(::FullContainerName const& name, ::SaveContext const& saveContext) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void bindType(
59 ::std::vector<::AllExperiments> const& releasedMinFormatVersion,
60 ::std::optional<::SemVersion> requiredToggles
61 );
62
63 MCAPI static ::HashedString const& getIdentifier();
64
65 MCAPI static void use(bool& result, ::ItemStack const& item, ::Player& player);
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCAPI void $dtor();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI void $_initializeComponent();
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85};
Definition HashedString.h:5
Definition IDynamicContainerSerialization.h:12
Definition ItemDescriptor.h:22
Definition ItemStack.h:25
Definition ListTag.h:12
Definition NetworkedItemComponent.h:6
Definition Player.h:119
Definition SaveContext.h:5
Definition SemVersion.h:15
Definition StorageItemComponent.h:25
Definition FullContainerName.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5