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

Public Member Functions

virtual void containerSizeChanged (int)
virtual void containerContentChanged (int slot)
virtual void createTransactionContext (::std::function< void(::Container &, int, ::ItemStack const &, ::ItemStack const &)> callback, ::std::function< void()> execute)
MCAPI bool add (::ItemStack &item, bool linkEmptySlot)
MCAPI void addListener (::ContainerContentChangeListener *listener)
MCAPI bool canAdd (::ItemStack const &item) const
MCAPI int clearInventory (int resize)
MCAPI void clearSlot (int slot, ::ContainerID containerId)
MCAPI void clearVanishEnchantedItemsOnDeath ()
MCAPI int getContainerSize (::ContainerID containerId) const
MCAPI int getFirstEmptySlot () const
MCAPI int getHotbarSize () const
MCAPI::ItemStack const & getItem (int slot, ::ContainerID containerId) const
MCAPI int getItemCount (::std::function< bool(::ItemStack const &)> comparator)
MCFOLD::ContainerID getSelectedContainerId ()
MCAPI::ItemStack const & getSelectedItem () const
MCAPI::PlayerInventorySlotData getSelectedSlot () const
MCAPI int getSlotWithItem (::ItemStack const &item, bool checkAux, bool checkData) const
MCAPI ::std::vector<::ItemStack const * > getSlots () const
MCAPI void removeItem (int slot, int count, ::ContainerID containerId)
MCAPI void removeListener (::ContainerContentChangeListener *listener)
MCAPI bool removeResource (int type)
MCAPI int removeResource (::ItemStack const &item, bool requireExactAux, bool requireExactData, int maxCount)
MCAPI bool selectSlot (int slot, ::ContainerID containerId)
MCAPI void serverInitItemStackId (int containerSlot)
MCAPI void serverInitItemStackIds (int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void setContainerChanged (int slot)
MCAPI void setItem (int slot, ::ItemStack const &item, ::ContainerID containerId, bool forceBalanced)
MCAPI void setSelectedItem (::ItemStack const &item)
MCAPI void setupDefaultInventory ()
MCAPI void swapSlots (int from, int to)
MCAPI void $dtor ()
MCFOLD void $containerSizeChanged (int)
MCAPI void $containerContentChanged (int slot)
MCAPI void $createTransactionContext (::std::function< void(::Container &, int, ::ItemStack const &, ::ItemStack const &)> callback, ::std::function< void()> execute)

Static Public Member Functions

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

Public Attributes

::ll::TypedStorage< 4, 4, int > mSelected
::ll::TypedStorage< 8, 152, ::ItemStackmInfiniteItem
::ll::TypedStorage< 1, 1, ::ContainerID > mSelectedContainerId
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Inventory > > mInventory
::ll::TypedStorage< 8, 24, ::std::vector<::ItemStack > > mComplexItems
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::HudContainerManagerModel > > mHudContainerManager

Member Function Documentation

◆ containerSizeChanged()

virtual void PlayerInventory::containerSizeChanged ( int )
virtual

◆ containerContentChanged()

virtual void PlayerInventory::containerContentChanged ( int slot)
virtual

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