LeviLamina
Loading...
Searching...
No Matches
TradeContainerManagerModel.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/LevelContainerManagerModel.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class ItemStack;
14class MerchantRecipe;
15class Player;
16struct ActorUniqueID;
17// clang-format on
18
19class TradeContainerManagerModel : public ::LevelContainerManagerModel {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, int> mCurrentIndex;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 TradeContainerManagerModel();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~TradeContainerManagerModel() /*override*/ = default;
34
35 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
36
37 virtual void setSlot(int slot, ::ItemStack const& item, bool) /*override*/;
38
39 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
40
41 virtual bool isValid(float pickRange) /*override*/;
42
43 virtual void broadcastChanges() /*override*/;
44
45 virtual ::ContainerScreenContext _postInit() /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI TradeContainerManagerModel(::ContainerID containerId, ::Player& player, ::ActorUniqueID const& uniqueId);
52
53#ifdef LL_PLAT_C
54 MCAPI int getAvailableRecipeListSize();
55
56 MCAPI ::MerchantRecipe* getCurrentRecipe(int index);
57
58 MCFOLD ::std::string getDisplayName();
59
60 MCFOLD ::Actor* getEntity() const;
61
62 MCAPI void recipeChanged();
63
64 MCAPI void setCurrentRecipeIndex(int index);
65#endif
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::ActorUniqueID const& uniqueId);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
78
79 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool);
80
81 MCAPI ::ItemStack const& $getSlot(int slot) const;
82
83 MCAPI bool $isValid(float pickRange);
84
85 MCFOLD void $broadcastChanges();
86
87 MCAPI ::ContainerScreenContext $_postInit();
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition Actor.h:125
Definition ContainerScreenContext.h:19
Definition ItemStack.h:35
Definition MerchantRecipe.h:20
Definition Player.h:137
Definition ActorUniqueID.h:10