Anvil
Anvil.API.Inventory Class Reference

Public Member Functions

bool CheckFit (NwBaseItem baseItem)
 Gets if the specified base item type will fit in this inventory. More...
 
bool CheckFit (NwItem item)
 Gets if the specified item will fit in this inventory. More...
 

Properties

IEnumerable< NwItemItems [get]
 Gets all items belonging to this inventory. More...
 

Member Function Documentation

◆ CheckFit() [1/2]

bool Anvil.API.Inventory.CheckFit ( NwBaseItem  baseItem)
inline

Gets if the specified base item type will fit in this inventory.

Parameters
baseItemThe base item type to check.
Returns
True if the item will fit, otherwise false.

◆ CheckFit() [2/2]

bool Anvil.API.Inventory.CheckFit ( NwItem  item)
inline

Gets if the specified item will fit in this inventory.

Parameters
itemThe item to check.
Returns
True if the item will fit, otherwise false.

Property Documentation

◆ Items

IEnumerable<NwItem> Anvil.API.Inventory.Items
get

Gets all items belonging to this inventory.


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