27 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
28 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mLastSlots;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerContainerRefresher>> mContainerRefresher;
30 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DynamicContainerTracker>> mDynamicContainerTracker;
31 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
32 ::ll::TypedStorage<1, 1, ::SharedTypes::Legacy::ContainerType> mContainerType;
33 ::ll::TypedStorage<4, 4, int> mTicksSinceLastCleanup;
38 void(::SharedTypes::Legacy::ContainerType),
41 mContainerTypeSubscribers;
46 BaseContainerMenu& operator=(BaseContainerMenu
const&);
47 BaseContainerMenu(BaseContainerMenu
const&);
53 virtual ~BaseContainerMenu() ;
55 virtual void removeSlot(
int,
int) = 0;
57 virtual bool isSlotDirty(
int slot);
59 virtual bool isResultSlot(
int slot);
61 virtual void containerContentChanged(
int slot) ;
63 virtual void serverInitItemStackIds() = 0;
65 virtual ::std::vector<::ItemStack> getItemCopies()
const = 0;
67 virtual void setSlot(
int,
::ItemStack const&,
bool) = 0;
69 virtual ::ItemStack
const& getSlot(
int)
const = 0;
71 virtual void setData(
int id,
int value) ;
73 virtual ::ContainerID getContainerId()
const ;
75 virtual void setContainerId(::ContainerID
id) ;
77 virtual ::SharedTypes::Legacy::ContainerType getContainerType()
const ;
79 virtual void setContainerType(::SharedTypes::Legacy::ContainerType type) ;
81 virtual ::Bedrock::PubSub::Subscription
82 registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const
85 virtual void broadcastChanges() ;
87 virtual ::Container* _getContainer()
const = 0;
93 MCAPI BaseContainerMenu(
::Player& player, ::SharedTypes::Legacy::ContainerType containerType);
101 MCAPI
void* $ctor(
::Player& player, ::SharedTypes::Legacy::ContainerType containerType);
113 MCFOLD
bool $isSlotDirty(
int slot);
115 MCFOLD
bool $isResultSlot(
int slot);
117 MCFOLD
void $containerContentChanged(
int slot);
119 MCFOLD
void $setData(
int id,
int value);
121 MCFOLD ::ContainerID $getContainerId()
const;
123 MCAPI
void $setContainerId(::ContainerID
id);
125 MCFOLD ::SharedTypes::Legacy::ContainerType $getContainerType()
const;
127 MCAPI
void $setContainerType(::SharedTypes::Legacy::ContainerType type);
129 MCAPI ::Bedrock::PubSub::Subscription
130 $registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const;
132 MCAPI
void $broadcastChanges();
140 MCAPI
static void** $vftableForContainerContentChangeListener();
142 MCAPI
static void** $vftableForIContainerManager();
Definition ContainerContentChangeListener.h:5