Skip to content

Class endstone::Inventory

ClassList > endstone > Inventory

Interface to the various inventories.

  • #include <endstone/inventory/inventory.h>

Inherited by the following classes: endstone::PlayerInventory

Public Functions

Type Name
virtual int getMaxStackSize () const = 0
Returns the maximum stack size for an ItemStack in this inventory.
virtual int getSize () const = 0
Returns the size of the inventory.
virtual ~Inventory () = default

Public Functions Documentation

function getMaxStackSize

Returns the maximum stack size for an ItemStack in this inventory.

virtual int endstone::Inventory::getMaxStackSize () const = 0

Returns:

The maximum size for an ItemStack in this inventory.


function getSize

Returns the size of the inventory.

virtual int endstone::Inventory::getSize () const = 0

Returns:

The size of the inventory


function ~Inventory

virtual endstone::Inventory::~Inventory () = default


The documentation for this class was generated from the following file include/endstone/inventory/inventory.h