38 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::PlayerContainerRefresher>>> mContainerRefresher;
39 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::DynamicContainerTracker>>> mDynamicContainerTracker;
40 ::ll::TypedStorage<8, 16, ::WeakRef<::IContainerRegistryAccess>> mRegistryAccess;
41 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
42 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mLastSlots;
43 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
44 ::ll::TypedStorage<1, 1, ::SharedTypes::Legacy::ContainerType> mContainerType;
49 void(::SharedTypes::Legacy::ContainerType),
52 mContainerTypeSubscribers;
57 mInformControllerOfDestructionCallbacks;
58 ::ll::TypedStorage<8, 40, ::ContainerScreenContext> mScreenContext;
59 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::shared_ptr<::ContainerModel>>> mContainers;
61 mOnDynamicContainerChangePublisher;
80 virtual ::ContainerID getContainerId()
const ;
83 virtual void setContainerId(::ContainerID) ;
86 virtual ::SharedTypes::Legacy::ContainerType getContainerType()
const ;
89 virtual void setContainerType(::SharedTypes::Legacy::ContainerType type) ;
92 virtual ::Bedrock::PubSub::Subscription
93 registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const
97 virtual void debitPlayerLevels(
int levels);
100 virtual bool isCreativeMode()
const;
103 virtual bool isClientSide()
const;
106 virtual bool isServerAuthoritative()
const;
109 virtual bool isValid(
float pickRange);
112 virtual void serverInitItemStackIds() ;
119 virtual ::ItemStack
const& getFullContainerSlot(
int slot,
::FullContainerName const& name)
const ;
122 virtual void broadcastChanges() ;
125 virtual ::ContainerScreenContext _postInit() = 0;
133 MCNAPI
void _addContainer(::std::shared_ptr<::ContainerModel> containerModel);
163 MCNAPI ::Bedrock::PubSub::Subscription