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 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;
99 MCFOLD
bool $isSlotDirty(
int slot);
101 MCFOLD
bool $isResultSlot(
int slot);
103 MCFOLD
void $containerContentChanged(
int slot);
105 MCFOLD
void $setData(
int id,
int value);
107 MCFOLD ::ContainerID $getContainerId()
const;
109 MCAPI
void $setContainerId(::ContainerID
id);
111 MCAPI ::SharedTypes::Legacy::ContainerType $getContainerType()
const;
113 MCAPI
void $setContainerType(::SharedTypes::Legacy::ContainerType type);
115 MCAPI ::Bedrock::PubSub::Subscription
116 $registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const;
118 MCAPI
void $broadcastChanges();
Definition ContainerContentChangeListener.h:5