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

Public Member Functions

virtual void setSlot (int slot, ::ItemStack const &item, bool)
virtual::ItemStack const & getSlot (int slot) const
virtual void removeSlot (int slot, int count)
virtual void setFullContainerSlot (int slot, ::FullContainerName const &name, ::ItemStack const &item, bool)
virtual::ItemStack const & getFullContainerSlot (int slot, ::FullContainerName const &name) const
virtual void serverInitItemStackIds ()
virtual ::std::vector<::ItemStack > getItemCopies () const
virtual::Container * _getContainer () const
MCAPI InventoryMenu (::Player &player, ::Container *container)
MCAPI void * $ctor (::Player &player, ::Container *container)
MCAPI void $dtor ()
MCAPI void $setSlot (int slot, ::ItemStack const &item, bool)
MCAPI::ItemStack const & $getSlot (int slot) const
MCAPI void $removeSlot (int slot, int count)
MCAPI void $setFullContainerSlot (int slot, ::FullContainerName const &name, ::ItemStack const &item, bool)
MCAPI::ItemStack const & $getFullContainerSlot (int slot, ::FullContainerName const &name) const
MCAPI void $serverInitItemStackIds ()
MCAPI ::std::vector<::ItemStack > $getItemCopies () const
MCAPI::Container * $_getContainer () const
virtual bool isSlotDirty (int slot)
virtual bool isResultSlot (int slot)
virtual void containerContentChanged (int slot)
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 ()
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 ()

Static Public Member Functions

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

Public Attributes

::ll::TypedStorage< 8, 8, ::Container * > mContainer
::ll::TypedStorage< 8, 16, ::WeakRef<::IContainerRegistryAccess > > mContainerRegistryAccess
::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

Constructor & Destructor Documentation

◆ InventoryMenu()

MCAPI InventoryMenu::InventoryMenu ( ::Player & player,
::Container * container )
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.

Member Function Documentation

◆ setSlot()

virtual void InventoryMenu::setSlot ( int slot,
::ItemStack const & item,
bool  )
virtual

Implements BaseContainerMenu.

◆ getSlot()

virtual::ItemStack const & InventoryMenu::getSlot ( int slot) const
virtual

Implements BaseContainerMenu.

◆ removeSlot()

virtual void InventoryMenu::removeSlot ( int slot,
int count )
virtual

Implements BaseContainerMenu.

◆ setFullContainerSlot()

virtual void InventoryMenu::setFullContainerSlot ( int slot,
::FullContainerName const & name,
::ItemStack const & item,
bool  )
virtual

Implements IContainerManager.

◆ getFullContainerSlot()

virtual::ItemStack const & InventoryMenu::getFullContainerSlot ( int slot,
::FullContainerName const & name ) const
virtual

Implements IContainerManager.

◆ serverInitItemStackIds()

virtual void InventoryMenu::serverInitItemStackIds ( )
virtual

Implements BaseContainerMenu.

◆ getItemCopies()

virtual ::std::vector<::ItemStack > InventoryMenu::getItemCopies ( ) const
virtual

Implements BaseContainerMenu.

◆ _getContainer()

virtual::Container * InventoryMenu::_getContainer ( ) const
virtual

Implements BaseContainerMenu.

◆ $ctor()

MCAPI void * InventoryMenu::$ctor ( ::Player & player,
::Container * container )
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.

◆ $dtor()

MCAPI void InventoryMenu::$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.

◆ $setSlot()

MCAPI void InventoryMenu::$setSlot ( int slot,
::ItemStack const & item,
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.

◆ $getSlot()

MCAPI::ItemStack const & InventoryMenu::$getSlot ( int slot) 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.

◆ $removeSlot()

MCAPI void InventoryMenu::$removeSlot ( int slot,
int count )
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.

◆ $setFullContainerSlot()

MCAPI void InventoryMenu::$setFullContainerSlot ( int slot,
::FullContainerName const & name,
::ItemStack const & item,
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.

◆ $getFullContainerSlot()

MCAPI::ItemStack const & InventoryMenu::$getFullContainerSlot ( int slot,
::FullContainerName const & name ) 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.

◆ $serverInitItemStackIds()

MCAPI void InventoryMenu::$serverInitItemStackIds ( )
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.

◆ $getItemCopies()

MCAPI ::std::vector<::ItemStack > InventoryMenu::$getItemCopies ( ) 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.

◆ $_getContainer()

MCAPI::Container * InventoryMenu::$_getContainer ( ) 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.

◆ $vftableForContainerContentChangeListener()

MCAPI void ** InventoryMenu::$vftableForContainerContentChangeListener ( )
static
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.

◆ $vftableForIContainerManager()

MCAPI void ** InventoryMenu::$vftableForIContainerManager ( )
static
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()

virtual void BaseContainerMenu::containerContentChanged ( int slot)
virtualinherited

◆ setData()

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

Implements IContainerManager.

◆ setSelectedRecipeIndex()

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

Implements IContainerManager.

◆ getSelectedRecipeIndex()

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

Implements IContainerManager.

◆ getContainerId()

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

Implements IContainerManager.

◆ setContainerId()

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

Implements IContainerManager.

◆ getContainerType()

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

Implements IContainerManager.

◆ setContainerType()

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

Implements IContainerManager.

◆ registerContainerTypeListener()

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

Implements IContainerManager.

◆ broadcastChanges()

virtual void BaseContainerMenu::broadcastChanges ( )
virtualinherited

Implements IContainerManager.

◆ $isSlotDirty()

MCAPI bool BaseContainerMenu::$isSlotDirty ( int slot)
inherited
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)
inherited
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)
inherited
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  )
inherited
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  )
inherited
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
inherited
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
inherited
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)
inherited
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
inherited
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)
inherited
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
inherited
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 ( )
inherited
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: