Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemStackRequestActionHandler Class Reference

Classes

struct  PlayerLegacyRequestSlotIdAssignment
struct  RequestSlotIdAssignment
struct  RequestIdAssignments
struct  ScreenData

Public Types

enum class  RemoveType : int { Drop = 0 , DropRandomly = 1 , Destroy = 2 , Consume = 3 }

Public Member Functions

ItemStackRequestActionHandler & operator= (ItemStackRequestActionHandler const &)
 ItemStackRequestActionHandler (ItemStackRequestActionHandler const &)
MCAPI ItemStackRequestActionHandler (::ItemStackNetManagerServer &itemStackNetManager, ::Player &player)
MCAPI void _addResponseSlotInfo (::ItemStackRequestHandlerSlotInfo const &slotInfo, ::ItemStack const &item)
MCAPI void _cacheSlotIdAssigment (::ContainerRuntimeId const &containerRuntimeId, uchar requestSlot, uchar slot, ::ItemStackNetId const &serverNetId)
MCAPI ::std::shared_ptr<::SimpleSparseContainer > _getOrInitSparseContainer (::FullContainerName const &openContainerId)
MCAPI::ItemStackNetResult _handleRemove (::ItemStackRequestActionTransferBase const &requestAction, ::ItemStack &removedItem, ::ItemStackRequestActionHandler::RemoveType removeType)
MCAPI::ItemStackNetResult _handleTransfer (::ItemStackRequestActionTransferBase const &requestAction, bool const isSrcHintSlot, bool const isDstHintSlot, bool const isSwap)
MCAPI void _queueCursorEvent (::ItemStackRequestActionTransferBase const &requestAction, ::ContainerValidationResult const &result, bool isSwap)
MCAPI void _queueCursorGrab (::ItemStack const &item, ::QueuedCursorItemEvent::DispatchPolicy dispatchPolicy)
MCAPI void _queueCursorRelease (::ItemStack const &item, ::QueuedCursorItemEvent::DispatchPolicy dispatchPolicy)
MCAPI void _sendCursorItemEvent (::QueuedCursorItemEvent::Type type, ::ItemStack const &item)
MCAPI void _trackCursorDragDeferredSlot (::ContainerEnumName containerName, ::ContainerValidationSlotData const &slotData, ::ItemStack const &item)
MCAPI::ItemStackRequestActionHandler::ScreenData * _tryGetCurrentScreenData () const
MCAPI::ItemStackRequestHandlerSlotInfo _validateRequestSlot (::ItemStackRequestSlotInfo const &requestSlotInfo, bool isItemRequired, bool isHintSlot)
MCAPI void addStrings (::ItemStackRequestId requestId, ::std::vector<::std::string > strings)
MCAPI::ContainerScreenContext const & getScreenContext () const
MCAPI void normalTick ()
MCAPI ::std::vector<::ItemInstance > tryCraft (::std::unique_ptr<::ContainerValidationCraftInputs > craftInputs, uchar numCrafts)
MCAPI ~ItemStackRequestActionHandler ()
MCAPI void * $ctor (::ItemStackNetManagerServer &itemStackNetManager, ::Player &player)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Player & > mPlayer
::ll::TypedStorage< 8, 8, ::ItemStackNetManagerServer & > mItemStackNetManager
::ll::TypedStorage< 4, 4, ::ContainerRuntimeId const > mPlayerArmorContainerRuntimeId
::ll::TypedStorage< 4, 4, ::ContainerRuntimeId const > mPlayerHandContainerRuntimeId
::ll::TypedStorage< 4, 4, ::ContainerRuntimeId const > mPlayerUIContainerRuntimeId
::ll::TypedStorage< 8, 96, ::std::array<::ItemStackRequestActionHandler::PlayerLegacyRequestSlotIdAssignment, 3 > > mPlayerLegacyRequests
::ll::TypedStorage< 8, 8, ::std::chrono::steady_clock::time_point > mLastTime
::ll::TypedStorage< 8, 24, ::WeakRef<::EntityContext > > mCurrentRequestScreen
::ll::TypedStorage< 8, 16, ::ItemStackRequestId > mClientRequestId
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStackResponseContainerInfo > > mResponseContainerInfos
::ll::TypedStorage< 8, 16, ::std::map<::std::string, ::std::vector<::std::string > > > mFilteredStrings
::ll::TypedStorage< 8, 16, ::std::map<::std::string, ::std::vector<::std::string > > > mStrings
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ContainerScreenValidation > > mScreenValidation
::ll::TypedStorage< 8, 24, ::std::vector<::QueuedCursorItemEvent > > mQueuedCursorItemEvents
::ll::TypedStorage< 8, 24, ::std::vector<::CursorDragDeferredSlot > > mCursorDragDeferredSlots

Constructor & Destructor Documentation

◆ ItemStackRequestActionHandler()

MCAPI ItemStackRequestActionHandler::ItemStackRequestActionHandler ( ::ItemStackNetManagerServer & itemStackNetManager,
::Player & player )
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.

◆ ~ItemStackRequestActionHandler()

MCAPI ItemStackRequestActionHandler::~ItemStackRequestActionHandler ( )
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

◆ _cacheSlotIdAssigment()

MCAPI void ItemStackRequestActionHandler::_cacheSlotIdAssigment ( ::ContainerRuntimeId const & containerRuntimeId,
uchar requestSlot,
uchar slot,
::ItemStackNetId const & serverNetId )
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.

◆ _queueCursorEvent()

MCAPI void ItemStackRequestActionHandler::_queueCursorEvent ( ::ItemStackRequestActionTransferBase const & requestAction,
::ContainerValidationResult const & result,
bool isSwap )
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.

◆ _queueCursorGrab()

MCAPI void ItemStackRequestActionHandler::_queueCursorGrab ( ::ItemStack const & item,
::QueuedCursorItemEvent::DispatchPolicy dispatchPolicy )
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.

◆ _queueCursorRelease()

MCAPI void ItemStackRequestActionHandler::_queueCursorRelease ( ::ItemStack const & item,
::QueuedCursorItemEvent::DispatchPolicy dispatchPolicy )
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.

◆ _sendCursorItemEvent()

MCAPI void ItemStackRequestActionHandler::_sendCursorItemEvent ( ::QueuedCursorItemEvent::Type type,
::ItemStack const & item )
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.

◆ _trackCursorDragDeferredSlot()

MCAPI void ItemStackRequestActionHandler::_trackCursorDragDeferredSlot ( ::ContainerEnumName containerName,
::ContainerValidationSlotData const & slotData,
::ItemStack const & item )
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.

◆ _tryGetCurrentScreenData()

MCAPI::ItemStackRequestActionHandler::ScreenData * ItemStackRequestActionHandler::_tryGetCurrentScreenData ( ) 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.

◆ addStrings()

MCAPI void ItemStackRequestActionHandler::addStrings ( ::ItemStackRequestId requestId,
::std::vector<::std::string > strings )
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.

◆ normalTick()

MCAPI void ItemStackRequestActionHandler::normalTick ( )
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.

◆ tryCraft()

MCAPI ::std::vector<::ItemInstance > ItemStackRequestActionHandler::tryCraft ( ::std::unique_ptr<::ContainerValidationCraftInputs > craftInputs,
uchar numCrafts )
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 * ItemStackRequestActionHandler::$ctor ( ::ItemStackNetManagerServer & itemStackNetManager,
::Player & player )
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 ItemStackRequestActionHandler::$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.

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