LeviLamina
Loading...
Searching...
No Matches
BaseContainerMenu Class Referenceabstract
Inheritance diagram for BaseContainerMenu:

Public Member Functions

BaseContainerMenuoperator= (BaseContainerMenu const &)
 BaseContainerMenu (BaseContainerMenu const &)
virtual void removeSlot (int, int)=0
virtual bool isSlotDirty (int slot)
virtual bool isResultSlot (int slot)
virtual void containerContentChanged (int slot)
virtual void serverInitItemStackIds ()=0
virtual ::std::vector<::ItemStackgetItemCopies () const =0
virtual void setSlot (int, ::ItemStack const &, bool)=0
virtual::ItemStack const & getSlot (int) const =0
virtual void setData (int id, int value)
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 BaseContainerMenu (::Player &player, ::SharedTypes::Legacy::ContainerType containerType)
MCAPI void _saveLastSlots (::Container *container)
MCAPI void * $ctor (::Player &player, ::SharedTypes::Legacy::ContainerType containerType)
MCAPI void $dtor ()
MCFOLD bool $isSlotDirty (int slot)
MCFOLD bool $isResultSlot (int slot)
MCFOLD void $containerContentChanged (int slot)
MCFOLD void $setData (int id, int value)
MCFOLD::ContainerID $getContainerId () const
MCAPI void $setContainerId (::ContainerID id)
MCFOLD::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, ::FullContainerName const &) const =0

Static Public Member Functions

static MCAPI void ** $vftableForContainerContentChangeListener ()
static MCAPI void ** $vftableForIContainerManager ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()

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 ) const
pure virtual

Implements IContainerManager.

◆ setData()

virtual void BaseContainerMenu::setData ( int id,
int value )
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.

◆ $vftable()

MCAPI void ** IContainerManager::$vftable ( )
staticinherited
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: