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/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
14class ItemStack;
15class Player;
16// clang-format on
17
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
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~EnchantingContainerManagerModel() /*override*/ = default;
37
38 // vIndex: 7
39 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
40
41 // vIndex: 8
42 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
43
44 // vIndex: 9
45 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
46
47 // vIndex: 10
48 virtual void setData(int id, int value) /*override*/;
49
50 // vIndex: 19
51 virtual bool isValid(float pickRange) /*override*/;
52
53 // vIndex: 13
54 virtual void broadcastChanges() /*override*/;
55
56 // vIndex: 20
57 virtual ::ContainerScreenContext _postInit() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCNAPI EnchantingContainerManagerModel(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
64
65 MCNAPI void recalculateOptions();
66 // NOLINTEND
67
68public:
69 // static variables
70 // NOLINTBEGIN
71 MCNAPI static int const& NUM_OPTIONS();
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCNAPI void* $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI ::std::vector<::ItemStack> $getItemCopies() const;
84
85 MCNAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
86
87 MCNAPI ::ItemStack const& $getSlot(int slot) const;
88
89 MCNAPI void $setData(int id, int value);
90
91 MCNAPI bool $isValid(float pickRange);
92
93 MCNAPI void $broadcastChanges();
94
95 MCNAPI ::ContainerScreenContext $_postInit();
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition BlockPos.h:18
Definition ContainerManagerModel.h:29
Definition ContainerScreenContext.h:17
Definition EnchantingContainerManagerModel.h:18
MCAPI EnchantingContainerManagerModel(::ContainerID containerId, ::Player &player, ::BlockPos const &blockPos)
MCAPI bool $isValid(float pickRange)
MCAPI void * $ctor(::ContainerID containerId, ::Player &player, ::BlockPos const &blockPos)
MCAPI::ContainerScreenContext $_postInit()
static MCAPI int const & NUM_OPTIONS()
static MCAPI void ** $vftable()
MCAPI::ItemStack const & $getSlot(int slot) const
MCAPI void $setSlot(int slot, ::ItemStack const &item, bool fromNetwork)
MCAPI ::std::vector<::ItemStack > $getItemCopies() const
MCAPI void $setData(int id, int value)
Definition ItemEnchantOption.h:5
Definition ItemStack.h:25
Definition Player.h:119