19class EnchantingContainerManagerModel :
public ::ContainerManagerModel {
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
24 ::ll::TypedStorage<1, 1, bool> mShouldBookBeOpen;
25 ::ll::TypedStorage<8, 24, ::std::vector<::ItemEnchantOption>> mEnchantOptions;
26 ::ll::TypedStorage<8, 64, ::std::function<void(::EnchantingContainerManagerModel&)>> mOptionsChangedCallback;
31 EnchantingContainerManagerModel();
36 virtual ~EnchantingContainerManagerModel() =
default;
38 virtual ::std::vector<::ItemStack> getItemCopies()
const ;
40 virtual void setSlot(
int slot,
::ItemStack const& item,
bool) ;
42 virtual ::ItemStack
const& getSlot(
int slot)
const ;
44 virtual void setData(
int,
int) ;
46 virtual bool isValid(
float pickRange) ;
48 virtual void broadcastChanges() ;
50 virtual ::ContainerScreenContext _postInit() ;
56 MCAPI EnchantingContainerManagerModel(::ContainerID containerId,
::Player& player,
::BlockPos const& blockPos);
62 MCFOLD ::std::vector<::ItemEnchantOption>
const& getEnchantOptions()
const;
65 MCAPI
int getLapisCount();
67 MCAPI
void getNewEnchantmentSeed();
69 MCAPI
bool getShouldBookBeOpen()
const;
72 MCAPI
void recalculateOptions();
75 MCAPI
void registerOptionsChangedCallback(::std::function<
void(::EnchantingContainerManagerModel&)> callback);
77 MCAPI
void setOptions(::std::vector<::ItemEnchantOption>
const& options);
79 MCAPI
void setShouldBookBeOpen(
bool shouldBeOpen);
86 MCAPI
static int const& NUM_OPTIONS();
92 MCAPI
void* $ctor(::ContainerID containerId,
::Player& player,
::BlockPos const& blockPos);
98 MCAPI ::std::vector<::ItemStack> $getItemCopies()
const;
100 MCAPI
void $setSlot(
int slot,
::ItemStack const& item,
bool);
102 MCAPI ::ItemStack
const& $getSlot(
int slot)
const;
104 MCFOLD
void $setData(
int,
int);
106 MCAPI
bool $isValid(
float pickRange);
108 MCFOLD
void $broadcastChanges();
110 MCAPI ::ContainerScreenContext $_postInit();
118 MCAPI
static void** $vftable();
Definition ContainerScreenContext.h:19