LeviLamina
Loading...
Searching...
No Matches
EnchantingContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/containers/managers/models/ContainerManagerModel.h"
8#include "mc/world/item/enchanting/ItemEnchantOption.h"
9#include "mc/world/level/BlockPos.h"
10
11// auto generated forward declare list
12// clang-format off
14class ItemStack;
15class Player;
16// clang-format on
17
18class EnchantingContainerManagerModel : public ::ContainerManagerModel {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
23 ::ll::TypedStorage<1, 1, bool> mShouldBookBeOpen;
24 ::ll::TypedStorage<8, 24, ::std::vector<::ItemEnchantOption>> mEnchantOptions;
25 ::ll::TypedStorage<8, 64, ::std::function<void(::EnchantingContainerManagerModel&)>> mOptionsChangedCallback;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 EnchantingContainerManagerModel();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~EnchantingContainerManagerModel() /*override*/ = default;
36
37 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
38
39 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
40
41 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
42
43 virtual void setData(int id, int value) /*override*/;
44
45 virtual bool isValid(float pickRange) /*override*/;
46
47 virtual void broadcastChanges() /*override*/;
48
49 virtual ::ContainerScreenContext _postInit() /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI EnchantingContainerManagerModel(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
56
57 MCAPI void recalculateOptions();
58
59#ifdef LL_PLAT_C
60 MCAPI void registerOptionsChangedCallback(::std::function<void(::EnchantingContainerManagerModel&)> callback);
61#endif
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
74
75 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
76
77 MCAPI ::ItemStack const& $getSlot(int slot) const;
78
79 MCFOLD void $setData(int id, int value);
80
81 MCAPI bool $isValid(float pickRange);
82
83 MCFOLD void $broadcastChanges();
84
85 MCAPI ::ContainerScreenContext $_postInit();
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCAPI static void** $vftable();
94 // NOLINTEND
95};
Definition BlockPos.h:17
Definition ContainerScreenContext.h:16
Definition ItemStack.h:26
Definition Player.h:129