Minetest  5.4.0
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 video::ITexture * getInventoryTexture (const std::string &name, Client *client) const =0
 
virtual ItemMeshgetWieldMesh (const std::string &name, Client *client) const =0
 
virtual PalettegetPalette (const std::string &name, Client *client) const =0
 
virtual video::SColor getItemstackColor (const ItemStack &stack, Client *client) const =0
 
virtual void serialize (std::ostream &os, u16 protocol_version)=0
 

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

Implemented in CItemDefManager, and IWritableItemDefManager.

Referenced by ItemStack::ItemStack(), craftToolRepair(), ItemStack::deSerialize(), ItemStack::getDefinition(), ItemStack::getStackMax(), ItemStack::getToolCapabilities(), inputItemMatchesRecipe(), and ModApiClient::l_get_item_def().

+ Here is the caller graph for this function:

◆ getAlias()

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

Implemented in IWritableItemDefManager, and CItemDefManager.

Referenced by RollbackAction::applyRevert(), ItemStack::deSerialize(), ModApiItemMod::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 IWritableItemDefManager, and CItemDefManager.

Referenced by NodeDefManager::updateAliases().

+ Here is the caller graph for this function:

◆ getInventoryTexture()

virtual video::ITexture* IItemDefManager::getInventoryTexture ( const std::string &  name,
Client client 
) const
pure virtual

◆ getItemstackColor()

virtual video::SColor IItemDefManager::getItemstackColor ( const ItemStack stack,
Client client 
) const
pure virtual

Implemented in CItemDefManager.

Referenced by WieldMeshSceneNode::setItem().

+ Here is the caller graph for this function:

◆ getPalette()

virtual Palette* IItemDefManager::getPalette ( const std::string &  name,
Client client 
) const
pure virtual

Implemented in CItemDefManager.

◆ getWieldMesh()

virtual ItemMesh* IItemDefManager::getWieldMesh ( const std::string &  name,
Client client 
) const
pure virtual

◆ isKnown()

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

Implemented in CItemDefManager, and IWritableItemDefManager.

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

+ Here is the caller graph for this function:

◆ serialize()

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

Implemented in IWritableItemDefManager, and CItemDefManager.

Referenced by Server::SendItemDef().

+ Here is the caller graph for this function:

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