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

#include <itemdef.h>

+ Inheritance diagram for IWritableItemDefManager:
+ Collaboration diagram for IWritableItemDefManager:

Public Member Functions

 IWritableItemDefManager ()=default
 
virtual ~IWritableItemDefManager ()=default
 
virtual void applyTextureOverrides (const std::vector< TextureOverride > &overrides)=0
 
virtual void clear ()=0
 
virtual void registerItem (const ItemDefinition &def)=0
 
virtual void unregisterItem (const std::string &name)=0
 
virtual void registerAlias (const std::string &name, const std::string &convert_to)=0
 
virtual void deSerialize (std::istream &is, u16 protocol_version)=0
 
- Public Member Functions inherited from IItemDefManager
 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

◆ IWritableItemDefManager()

IWritableItemDefManager::IWritableItemDefManager ( )
default

◆ ~IWritableItemDefManager()

virtual IWritableItemDefManager::~IWritableItemDefManager ( )
virtualdefault

Member Function Documentation

◆ applyTextureOverrides()

virtual void IWritableItemDefManager::applyTextureOverrides ( const std::vector< TextureOverride > & overrides)
pure virtual

Implemented in CItemDefManager.

Referenced by Client::afterContentReceived(), and Server::init().

+ Here is the caller graph for this function:

◆ clear()

virtual void IWritableItemDefManager::clear ( )
pure virtual

Implemented in CItemDefManager.

◆ deSerialize()

virtual void IWritableItemDefManager::deSerialize ( std::istream & is,
u16 protocol_version )
pure virtual

Implemented in CItemDefManager.

Referenced by Client::handleCommand_ItemDef().

+ Here is the caller graph for this function:

◆ registerAlias()

virtual void IWritableItemDefManager::registerAlias ( const std::string & name,
const std::string & convert_to )
pure virtual

Implemented in CItemDefManager.

Referenced by ModApiItem::l_register_alias_raw(), and TestCraft::testShapeless().

+ Here is the caller graph for this function:

◆ registerItem()

virtual void IWritableItemDefManager::registerItem ( const ItemDefinition & def)
pure virtual

Implemented in CItemDefManager.

Referenced by ModApiItem::l_register_item_raw(), and TestCraft::registerItemWithGroups().

+ Here is the caller graph for this function:

◆ unregisterItem()

virtual void IWritableItemDefManager::unregisterItem ( const std::string & name)
pure virtual

Implemented in CItemDefManager.

Referenced by ModApiItem::l_unregister_item_raw().

+ Here is the caller graph for this function:

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