LeviLamina
Loading...
Searching...
No Matches
ItemStackNetManagerServer Class Reference
Inheritance diagram for ItemStackNetManagerServer:

Public Types

enum class  TextFilterState : int { None = 0 , Waiting = 1 , Timedout = 2 }
using RetainScope = ::gsl::final_action<::std::function<void()>>
using BaseContainerSetter = ::std::function<void(::ItemStack const&)>
using LegacyRequestScope = ::gsl::final_action<::std::function<void()>>

Public Member Functions

virtual::ItemStackRequestId getRequestId () const
virtual bool retainSetItemStackNetIdVariant () const
virtual bool allowInventoryTransactionManager () const
virtual void onContainerScreenOpen (::ContainerScreenContext const &screenContext)
virtual void _initScreen (::ItemStackNetManagerScreen &screen)
MCAPI ItemStackNetManagerServer (::ServerPlayer &serverPlayer, bool isEnabled)
MCAPI void _filterStrings (::ItemStackRequestId requestId, ::std::vector<::std::string > const &stringsToFilter, ::TextProcessingEventOrigin const &stringsToFilterOrigin)
MCAPI void _handleLegacyTransactionRequest (::ItemStackLegacyRequestId const &legacyClientRequestId, ::std::vector<::std::pair<::ContainerEnumName, ::std::vector< uchar > > > const &legacySetItemSlots)
MCAPI void _handleRequestData (::std::vector<::ItemStackResponseInfo > &responses, ::ItemStackRequestData const *requestData)
MCAPI void _processQueue ()
MCAPI void _queueRequest (::std::unique_ptr<::ItemStackRequestData > request)
MCAPI void _queueRequests (::ItemStackRequestBatch const &requestBatch)
MCAPI void _sendResponsePacket (::std::vector<::ItemStackResponseInfo > &&responses)
MCAPI void _setTextFilterState (::ItemStackNetManagerServer::TextFilterState state)
MCAPI bool _tryFilterText (::ItemStackRequestData const *requestData)
MCNAPI_C void handleRequest (::std::unique_ptr<::ItemStackRequestData > request, ::Bedrock::NonOwnerPointer<::TextFilteringProcessor > textFilteringProcessor)
MCAPI::CallbackToken tryCloseContainerScreen (::std::function< void()> onContainerScreenCloseCB)
MCAPI void * $ctor (::ServerPlayer &serverPlayer, bool isEnabled)
MCAPI void $dtor ()
MCAPI::ItemStackRequestId $getRequestId () const
MCAPI bool $retainSetItemStackNetIdVariant () const
MCAPI bool $allowInventoryTransactionManager () const
MCAPI void $onContainerScreenOpen (::ContainerScreenContext const &screenContext)
MCAPI void $_initScreen (::ItemStackNetManagerScreen &screen)
virtual bool isEnabled () const
virtual ::gsl::final_action<::std::function< void()> > _tryBeginClientLegacyTransactionRequest ()
virtual void onContainerScreenClose ()
virtual::SparseContainer * initOpenContainer (::BlockSource &, ::FullContainerName const &, ::ContainerWeakRef const &)
virtual void _addLegacyTransactionRequestSetItemSlot (::ItemStackNetManagerScreen &, ::SharedTypes::Legacy::ContainerType containerType, int slot)
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)
MCFOLD bool $isEnabled () const
MCAPI ::gsl::final_action<::std::function< void()> > $_tryBeginClientLegacyTransactionRequest ()
MCAPI void $onContainerScreenClose ()
MCFOLD::SparseContainer * $initOpenContainer (::BlockSource &, ::FullContainerName const &, ::ContainerWeakRef const &)
MCFOLD void $_addLegacyTransactionRequestSetItemSlot (::ItemStackNetManagerScreen &, ::SharedTypes::Legacy::ContainerType containerType, int slot)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI ::gsl::final_action<::std::function< void()> > _tryBeginClientLegacyTransactionRequest (::Player *player)
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< 8, 8, ::std::unique_ptr<::ItemStackRequestActionHandler > > mRequestActionHandler
::ll::TypedStorage< 1, 1, bool > mRetainSetItemStackNetIdVariants
::ll::TypedStorage< 4, 4, ::ItemStackNetManagerServer::TextFilterState > mTextFilterState
::ll::TypedStorage< 8, 40, ::std::queue<::std::unique_ptr<::ItemStackRequestData >, ::std::deque<::std::unique_ptr<::ItemStackRequestData > > > > mRequestsQueue
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::TextFilteringProcessor > > mTextFilteringProcessor
::ll::TypedStorage< 8, 8, ::TickmTextFilterRequestTimer
::ll::TypedStorage< 8, 8, ::Tick const > mTextFilterRequestTimeout
::ll::TypedStorage< 8, 16, ::CallbackTokenmTextFilterRequestToken
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::CallbackTokenContext<::std::function< void()> > > > mOnContainerScreenCloseCB
::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< 4, 16, ::ItemStackLegacyRequestId > mLegacyTransactionRequestId

Constructor & Destructor Documentation

◆ ItemStackNetManagerServer()

MCAPI ItemStackNetManagerServer::ItemStackNetManagerServer ( ::ServerPlayer & serverPlayer,
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

◆ getRequestId()

virtual::ItemStackRequestId ItemStackNetManagerServer::getRequestId ( ) const
virtual

◆ retainSetItemStackNetIdVariant()

virtual bool ItemStackNetManagerServer::retainSetItemStackNetIdVariant ( ) const
virtual

Reimplemented from ItemStackNetManagerBase.

◆ allowInventoryTransactionManager()

virtual bool ItemStackNetManagerServer::allowInventoryTransactionManager ( ) const
virtual

◆ onContainerScreenOpen()

virtual void ItemStackNetManagerServer::onContainerScreenOpen ( ::ContainerScreenContext const & screenContext)
virtual

Reimplemented from ItemStackNetManagerBase.

◆ _initScreen()

virtual void ItemStackNetManagerServer::_initScreen ( ::ItemStackNetManagerScreen & screen)
virtual

Reimplemented from ItemStackNetManagerBase.

◆ _filterStrings()

MCAPI void ItemStackNetManagerServer::_filterStrings ( ::ItemStackRequestId requestId,
::std::vector<::std::string > const & stringsToFilter,
::TextProcessingEventOrigin const & stringsToFilterOrigin )
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.

◆ _handleLegacyTransactionRequest()

MCAPI void ItemStackNetManagerServer::_handleLegacyTransactionRequest ( ::ItemStackLegacyRequestId const & legacyClientRequestId,
::std::vector<::std::pair<::ContainerEnumName, ::std::vector< uchar > > > const & legacySetItemSlots )
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.

◆ _handleRequestData()

MCAPI void ItemStackNetManagerServer::_handleRequestData ( ::std::vector<::ItemStackResponseInfo > & responses,
::ItemStackRequestData const * requestData )
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.

◆ _processQueue()

MCAPI void ItemStackNetManagerServer::_processQueue ( )
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.

◆ _queueRequest()

MCAPI void ItemStackNetManagerServer::_queueRequest ( ::std::unique_ptr<::ItemStackRequestData > request)
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.

◆ _queueRequests()

MCAPI void ItemStackNetManagerServer::_queueRequests ( ::ItemStackRequestBatch const & requestBatch)
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.

◆ _sendResponsePacket()

MCAPI void ItemStackNetManagerServer::_sendResponsePacket ( ::std::vector<::ItemStackResponseInfo > && responses)
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.

◆ _setTextFilterState()

MCAPI void ItemStackNetManagerServer::_setTextFilterState ( ::ItemStackNetManagerServer::TextFilterState state)
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.

◆ _tryFilterText()

MCAPI bool ItemStackNetManagerServer::_tryFilterText ( ::ItemStackRequestData const * requestData)
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.

◆ tryCloseContainerScreen()

MCAPI::CallbackToken ItemStackNetManagerServer::tryCloseContainerScreen ( ::std::function< void()> onContainerScreenCloseCB)
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 * ItemStackNetManagerServer::$ctor ( ::ServerPlayer & serverPlayer,
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 ItemStackNetManagerServer::$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.

◆ $getRequestId()

MCAPI::ItemStackRequestId ItemStackNetManagerServer::$getRequestId ( ) 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 ItemStackNetManagerServer::$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.

◆ $allowInventoryTransactionManager()

MCAPI bool ItemStackNetManagerServer::$allowInventoryTransactionManager ( ) 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 ItemStackNetManagerServer::$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.

◆ $_initScreen()

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

◆ $vftable()

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

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