Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
IItemDefManager Class Referenceabstract

#include <itemdef.h>

+ Inheritance diagram for IItemDefManager:

Public Member Functions

 IItemDefManager ()=default
 
virtual ~IItemDefManager ()=default
 
virtual const ItemDefinitionget (const std::string &name) const =0
 
virtual const std::string & getAlias (const std::string &name) const =0
 
virtual void getAll (std::set< std::string > &result) const =0
 
virtual bool isKnown (const std::string &name) const =0
 
virtual void serialize (std::ostream &os, u16 protocol_version)=0
 
virtual video::ITexture * getInventoryTexture (const ItemStack &item, Client *client) const
 
virtual ItemMeshgetWieldMesh (const ItemStack &item, Client *client) const
 Get wield mesh.
 
virtual PalettegetPalette (const ItemStack &item, Client *client) const
 
virtual video::SColor getItemstackColor (const ItemStack &stack, Client *client) const
 

Constructor & Destructor Documentation

◆ IItemDefManager()

IItemDefManager::IItemDefManager ( )
default

◆ ~IItemDefManager()

virtual IItemDefManager::~IItemDefManager ( )
virtualdefault

Member Function Documentation

◆ get()

virtual const ItemDefinition & IItemDefManager::get ( const std::string & name) const
pure virtual

◆ getAlias()

virtual const std::string & IItemDefManager::getAlias ( const std::string & name) const
pure virtual

Implemented in CItemDefManager.

Referenced by RollbackAction::applyRevert(), ItemStack::deSerialize(), ModApiItem::l_get_content_id(), and NodeDefManager::updateAliases().

+ Here is the caller graph for this function:

◆ getAll()

virtual void IItemDefManager::getAll ( std::set< std::string > & result) const
pure virtual

Implemented in CItemDefManager.

Referenced by NodeDefManager::updateAliases().

+ Here is the caller graph for this function:

◆ getInventoryTexture()

virtual video::ITexture * IItemDefManager::getInventoryTexture ( const ItemStack & item,
Client * client ) const
inlinevirtual

◆ getItemstackColor()

virtual video::SColor IItemDefManager::getItemstackColor ( const ItemStack & stack,
Client * client ) const
inlinevirtual

Referenced by WieldMeshSceneNode::setItem().

+ Here is the caller graph for this function:

◆ getPalette()

virtual Palette * IItemDefManager::getPalette ( const ItemStack & item,
Client * client ) const
inlinevirtual

◆ getWieldMesh()

virtual ItemMesh * IItemDefManager::getWieldMesh ( const ItemStack & item,
Client * client ) const
inlinevirtual

Get wield mesh.

Returns
nullptr if there is an inventory image

◆ isKnown()

virtual bool IItemDefManager::isKnown ( const std::string & name) const
pure virtual

Implemented in CItemDefManager.

Referenced by inputItemMatchesRecipe(), ItemStack::isKnown(), ModApiClient::l_get_item_def(), and TestCraft::registerItemWithGroups().

+ Here is the caller graph for this function:

◆ serialize()

virtual void IItemDefManager::serialize ( std::ostream & os,
u16 protocol_version )
pure virtual

Implemented in CItemDefManager.

Referenced by Server::SendItemDef().

+ Here is the caller graph for this function:

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