18class EnchantingContainerManagerModel :
public ::ContainerManagerModel {
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;
30 EnchantingContainerManagerModel();
35 virtual ~EnchantingContainerManagerModel() =
default;
37 virtual ::std::vector<::ItemStack> getItemCopies()
const ;
39 virtual void setSlot(
int slot,
::ItemStack const& item,
bool fromNetwork) ;
41 virtual ::ItemStack
const& getSlot(
int slot)
const ;
43 virtual void setData(
int id,
int value) ;
45 virtual bool isValid(
float pickRange) ;
47 virtual void broadcastChanges() ;
49 virtual ::ContainerScreenContext _postInit() ;
55 MCAPI EnchantingContainerManagerModel(::ContainerID containerId,
::Player& player,
::BlockPos const& blockPos);
57 MCAPI
void recalculateOptions();
63 MCAPI
void* $ctor(::ContainerID containerId,
::Player& player,
::BlockPos const& blockPos);
69 MCAPI ::std::vector<::ItemStack> $getItemCopies()
const;
71 MCAPI
void $setSlot(
int slot,
::ItemStack const& item,
bool fromNetwork);
73 MCAPI ::ItemStack
const& $getSlot(
int slot)
const;
75 MCFOLD
void $setData(
int id,
int value);
77 MCAPI
bool $isValid(
float pickRange);
79 MCFOLD
void $broadcastChanges();
81 MCAPI ::ContainerScreenContext $_postInit();
Definition ContainerScreenContext.h:17