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::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 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

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