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

Public Types

using BaseContainerSetter = ::std::function<void(::ItemStack const&)>
using LegacyRequestScope = ::gsl::final_action<::std::function<void()>>

Public Member Functions

ItemStackNetManagerBase & operator= (ItemStackNetManagerBase const &)
 ItemStackNetManagerBase (ItemStackNetManagerBase const &)
virtual bool isEnabled () const
virtual::ItemStackRequestId getRequestId () const =0
virtual bool retainSetItemStackNetIdVariant () const
virtual bool allowInventoryTransactionManager () const =0
virtual ::gsl::final_action<::std::function< void()> > _tryBeginClientLegacyTransactionRequest ()
virtual void onContainerScreenOpen (::ContainerScreenContext const &screenContext)
virtual void onContainerScreenClose ()
virtual::SparseContainer * initOpenContainer (::BlockSource &region, ::FullContainerName const &openContainerId, ::ContainerWeakRef const &containerWeakRef)
virtual void beginCursorItemDrag ()=0
virtual void endCursorItemDrag ()=0
virtual void _addLegacyTransactionRequestSetItemSlot (::ItemStackNetManagerScreen &screen, ::SharedTypes::Legacy::ContainerType containerType, int slot)
virtual void _initScreen (::ItemStackNetManagerScreen &screen)
MCAPI ItemStackNetManagerBase (::Player &player, bool isClientSide, bool isEnabled)
MCAPI bool _isRequestActionAllowed (::ItemStackRequestAction const &requestAction)
MCAPI void _pushScreen (::ContainerScreenContext screenContext)
MCAPI::ContainerScreenContext const & getScreenContext () const
MCAPI void * $ctor (::Player &player, bool isClientSide, bool isEnabled)
MCAPI void $dtor ()
MCAPI bool $isEnabled () const
MCAPI bool $retainSetItemStackNetIdVariant () const
MCAPI ::gsl::final_action<::std::function< void()> > $_tryBeginClientLegacyTransactionRequest ()
MCAPI void $onContainerScreenOpen (::ContainerScreenContext const &screenContext)
MCAPI void $onContainerScreenClose ()
MCAPI::SparseContainer * $initOpenContainer (::BlockSource &region, ::FullContainerName const &openContainerId, ::ContainerWeakRef const &containerWeakRef)
MCAPI void $_addLegacyTransactionRequestSetItemSlot (::ItemStackNetManagerScreen &screen, ::SharedTypes::Legacy::ContainerType containerType, int slot)
MCAPI void $_initScreen (::ItemStackNetManagerScreen &screen)

Static Public Member Functions

static MCAPI bool setPlayerContainer (::Player &player, ::SharedTypes::Legacy::ContainerType containerType, int slot, ::ItemStack const &item, ::ItemStack &slotItem, ::std::function< void(::ItemStack const &)> const &callback)

Public Attributes

::ll::TypedStorage< 1, 1, bool const > mIsEnabled
::ll::TypedStorage< 1, 1, bool const > mIsClientSide
::ll::TypedStorage< 8, 8, ::Player & > mPlayer
::ll::TypedStorage< 8, 16, ::WeakRef<::EntityRegistry > > mLevelWeakRegistry
::ll::TypedStorage< 8, 16, ::OwnerPtr<::EntityRegistry > > mEntityRegistry
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ItemStackNetManagerScreenStack > > mScreenStack
::ll::TypedStorage< 1, 1, bool > mCurrentRequestHasCraftAction
::ll::TypedStorage< 8, 16, ::ItemStackLegacyRequestId > mLegacyTransactionRequestId
::ll::TypedStorage< 1, 1, bool > mCursorItemDragActive

Constructor & Destructor Documentation

◆ ItemStackNetManagerBase()

MCAPI ItemStackNetManagerBase::ItemStackNetManagerBase ( ::Player & player,
bool isClientSide,
bool isEnabled )
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

◆ _isRequestActionAllowed()

MCAPI bool ItemStackNetManagerBase::_isRequestActionAllowed ( ::ItemStackRequestAction const & requestAction)
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.

◆ _pushScreen()

MCAPI void ItemStackNetManagerBase::_pushScreen ( ::ContainerScreenContext screenContext)
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.

◆ setPlayerContainer()

MCAPI bool ItemStackNetManagerBase::setPlayerContainer ( ::Player & player,
::SharedTypes::Legacy::ContainerType containerType,
int slot,
::ItemStack const & item,
::ItemStack & slotItem,
::std::function< void(::ItemStack const &)> const & callback )
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.

◆ $ctor()

MCAPI void * ItemStackNetManagerBase::$ctor ( ::Player & player,
bool isClientSide,
bool isEnabled )
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 ItemStackNetManagerBase::$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.

◆ $isEnabled()

MCAPI bool ItemStackNetManagerBase::$isEnabled ( ) 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.

◆ $retainSetItemStackNetIdVariant()

MCAPI bool ItemStackNetManagerBase::$retainSetItemStackNetIdVariant ( ) 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.

◆ $onContainerScreenOpen()

MCAPI void ItemStackNetManagerBase::$onContainerScreenOpen ( ::ContainerScreenContext const & screenContext)
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.

◆ $initOpenContainer()

MCAPI::SparseContainer * ItemStackNetManagerBase::$initOpenContainer ( ::BlockSource & region,
::FullContainerName const & openContainerId,
::ContainerWeakRef const & containerWeakRef )
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.

◆ $_addLegacyTransactionRequestSetItemSlot()

MCAPI void ItemStackNetManagerBase::$_addLegacyTransactionRequestSetItemSlot ( ::ItemStackNetManagerScreen & screen,
::SharedTypes::Legacy::ContainerType containerType,
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.

◆ $_initScreen()

MCAPI void ItemStackNetManagerBase::$_initScreen ( ::ItemStackNetManagerScreen & screen)
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: