LeviLamina
Loading...
Searching...
No Matches
DataDrivenBlockContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Container.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class CompoundTag;
12class ILevel;
13class ItemStack;
14class SaveContext;
15// clang-format on
16
17class DataDrivenBlockContainer : public ::Container {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::ItemStack const& getItem(int slot) const /*override*/;
28
29 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
30
31 virtual int getContainerSize() const /*override*/;
32
33 virtual int getMaxStackSize() const /*override*/;
34
35 virtual void startOpen(::Actor&) /*override*/;
36
37 virtual void serverInitItemStackIds(
38 int containerSlot,
39 int count,
40 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
41 ) /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI void load(::CompoundTag const& tag, ::ILevel& level);
48
49 MCNAPI void save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::ItemStack const& $getItem(int slot) const;
56
57 MCNAPI void $setItem(int slot, ::ItemStack const& item);
58
59 MCNAPI int $getContainerSize() const;
60
61 MCNAPI int $getMaxStackSize() const;
62
63 MCNAPI void $startOpen(::Actor&);
64
66 int containerSlot,
67 int count,
68 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
69 );
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition Actor.h:113
Definition CompoundTag.h:18
Definition DataDrivenBlockContainer.h:17
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void save(::CompoundTag &tag, ::SaveContext const &saveContext) const
static MCAPI void ** $vftable()
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void $startOpen(::Actor &)
MCAPI int $getContainerSize() const
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI void load(::CompoundTag const &tag, ::ILevel &level)
MCAPI int $getMaxStackSize() const
Definition ILevel.h:221
Definition ItemStack.h:26
Definition SaveContext.h:5