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;
57 virtual void removeSlot(
int,
int) = 0;
60 virtual bool isSlotDirty(
int slot);
63 virtual bool isResultSlot(
int slot);
66 virtual void containerContentChanged(
int slot) ;
69 virtual void serverInitItemStackIds() = 0;
72 virtual ::std::vector<::ItemStack> getItemCopies()
const = 0;
75 virtual void setSlot(
int,
::ItemStack const&,
bool) = 0;
78 virtual ::ItemStack
const& getSlot(
int)
const = 0;
81 virtual void setData(
int id,
int value) ;
84 virtual ::ContainerID getContainerId()
const ;
87 virtual void setContainerId(::ContainerID
id) ;
90 virtual ::SharedTypes::Legacy::ContainerType getContainerType()
const ;
93 virtual void setContainerType(::SharedTypes::Legacy::ContainerType type) ;
96 virtual ::Bedrock::PubSub::Subscription
97 registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const
101 virtual void broadcastChanges() ;
104 virtual ::Container* _getContainer()
const = 0;
118 MCNAPI
void*
$ctor(
::Player& player, ::SharedTypes::Legacy::ContainerType containerType);
146 MCNAPI ::Bedrock::PubSub::Subscription
Definition ContainerContentChangeListener.h:5