Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BaseContainerMenu Class Referenceabstract
Inheritance diagram for BaseContainerMenu:

Public Member Functions

BaseContainerMenu & operator= (BaseContainerMenu const &)
 BaseContainerMenu (BaseContainerMenu const &)
virtual void removeSlot (int slot, int count)=0
virtual bool isSlotDirty (int slot)
virtual bool isResultSlot (int slot)
virtual void containerContentChanged (int slot)
virtual void serverInitItemStackIds ()=0
virtual ::std::vector<::ItemStack > getItemCopies () const =0
virtual void setSlot (int, ::ItemStack const &, bool)=0
virtual::ItemStack const & getSlot (int slot) const =0
virtual void setData (int, int)
virtual void setSelectedRecipeIndex (int, bool)
virtual ::std::optional< int > getSelectedRecipeIndex () const
virtual::ContainerID getContainerId () const
virtual void setContainerId (::ContainerID id)
virtual::SharedTypes::Legacy::ContainerType getContainerType () const
virtual void setContainerType (::SharedTypes::Legacy::ContainerType type)
virtual::Bedrock::PubSub::Subscription registerContainerTypeListener (::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
virtual void broadcastChanges ()
virtual::Container * _getContainer () const =0
MCAPI void $dtor ()
MCAPI bool $isSlotDirty (int slot)
MCAPI bool $isResultSlot (int slot)
MCAPI void $containerContentChanged (int slot)
MCAPI void $setData (int, int)
MCAPI void $setSelectedRecipeIndex (int, bool)
MCAPI ::std::optional< int > $getSelectedRecipeIndex () const
MCAPI::ContainerID $getContainerId () const
MCAPI void $setContainerId (::ContainerID id)
MCAPI::SharedTypes::Legacy::ContainerType $getContainerType () const
MCAPI void $setContainerType (::SharedTypes::Legacy::ContainerType type)
MCAPI::Bedrock::PubSub::Subscription $registerContainerTypeListener (::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
MCAPI void $broadcastChanges ()
virtual void setFullContainerSlot (int, ::FullContainerName const &, ::ItemStack const &, bool)=0
virtual::ItemStack const & getFullContainerSlot (int slot, ::FullContainerName const &name) const =0

Public Attributes

::ll::TypedStorage< 8, 8, ::Player & > mPlayer
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mLastSlots
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::PlayerContainerRefresher > > mContainerRefresher
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::DynamicContainerTracker > > mDynamicContainerTracker
::ll::TypedStorage< 1, 1, ::ContainerID > mContainerId
::ll::TypedStorage< 1, 1, ::SharedTypes::Legacy::ContainerType > mContainerType
::ll::TypedStorage< 4, 4, int > mTicksSinceLastCleanup
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Bedrock::PubSub::Publisher< void(::SharedTypes::Legacy::ContainerType), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > > mContainerTypeSubscribers

Member Function Documentation

◆ containerContentChanged()

virtual void BaseContainerMenu::containerContentChanged ( int slot)
virtual

◆ serverInitItemStackIds()

virtual void BaseContainerMenu::serverInitItemStackIds ( )
pure virtual

Implements IContainerManager.

◆ getItemCopies()

virtual ::std::vector<::ItemStack > BaseContainerMenu::getItemCopies ( ) const
pure virtual

Implements IContainerManager.

◆ setSlot()

virtual void BaseContainerMenu::setSlot ( int ,
::ItemStack const & ,
bool  )
pure virtual

Implements IContainerManager.

◆ getSlot()

virtual::ItemStack const & BaseContainerMenu::getSlot ( int slot) const
pure virtual

Implements IContainerManager.

◆ setData()

virtual void BaseContainerMenu::setData ( int ,
int  )
virtual

Implements IContainerManager.

◆ setSelectedRecipeIndex()

virtual void BaseContainerMenu::setSelectedRecipeIndex ( int ,
bool  )
virtual

Implements IContainerManager.

◆ getSelectedRecipeIndex()

virtual ::std::optional< int > BaseContainerMenu::getSelectedRecipeIndex ( ) const
virtual

Implements IContainerManager.

◆ getContainerId()

virtual::ContainerID BaseContainerMenu::getContainerId ( ) const
virtual

Implements IContainerManager.

◆ setContainerId()

virtual void BaseContainerMenu::setContainerId ( ::ContainerID id)
virtual

Implements IContainerManager.

◆ getContainerType()

virtual::SharedTypes::Legacy::ContainerType BaseContainerMenu::getContainerType ( ) const
virtual

Implements IContainerManager.

◆ setContainerType()

virtual void BaseContainerMenu::setContainerType ( ::SharedTypes::Legacy::ContainerType type)
virtual

Implements IContainerManager.

◆ registerContainerTypeListener()

virtual::Bedrock::PubSub::Subscription BaseContainerMenu::registerContainerTypeListener ( ::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
virtual

Implements IContainerManager.

◆ broadcastChanges()

virtual void BaseContainerMenu::broadcastChanges ( )
virtual

Implements IContainerManager.

◆ $dtor()

MCAPI void BaseContainerMenu::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isSlotDirty()

MCAPI bool BaseContainerMenu::$isSlotDirty ( int slot)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isResultSlot()

MCAPI bool BaseContainerMenu::$isResultSlot ( int slot)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $containerContentChanged()

MCAPI void BaseContainerMenu::$containerContentChanged ( int slot)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setData()

MCAPI void BaseContainerMenu::$setData ( int ,
int  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setSelectedRecipeIndex()

MCAPI void BaseContainerMenu::$setSelectedRecipeIndex ( int ,
bool  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getSelectedRecipeIndex()

MCAPI ::std::optional< int > BaseContainerMenu::$getSelectedRecipeIndex ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getContainerId()

MCAPI::ContainerID BaseContainerMenu::$getContainerId ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setContainerId()

MCAPI void BaseContainerMenu::$setContainerId ( ::ContainerID id)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getContainerType()

MCAPI::SharedTypes::Legacy::ContainerType BaseContainerMenu::$getContainerType ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setContainerType()

MCAPI void BaseContainerMenu::$setContainerType ( ::SharedTypes::Legacy::ContainerType type)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $registerContainerTypeListener()

MCAPI::Bedrock::PubSub::Subscription BaseContainerMenu::$registerContainerTypeListener ( ::std::function< void(::SharedTypes::Legacy::ContainerType)> callback) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $broadcastChanges()

MCAPI void BaseContainerMenu::$broadcastChanges ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: