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 slot,
int count) = 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 slot)
const = 0;
71 virtual void setData(
int,
int) ;
73 virtual void setSelectedRecipeIndex(
int,
bool) ;
75 virtual ::std::optional<int> getSelectedRecipeIndex()
const ;
77 virtual ::ContainerID getContainerId()
const ;
79 virtual void setContainerId(::ContainerID
id) ;
81 virtual ::SharedTypes::Legacy::ContainerType getContainerType()
const ;
83 virtual void setContainerType(::SharedTypes::Legacy::ContainerType type) ;
85 virtual ::Bedrock::PubSub::Subscription
86 registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const
89 virtual void broadcastChanges() ;
91 virtual ::Container* _getContainer()
const = 0;
123 MCNAPI ::Bedrock::PubSub::Subscription
Definition ContainerContentChangeListener.h:5