#include <itemdef.h>
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 ItemDefinition & | get (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 ItemMesh * | getWieldMesh (const ItemStack &item, Client *client) const |
Get wield mesh. | |
virtual Palette * | getPalette (const ItemStack &item, Client *client) const |
virtual video::SColor | getItemstackColor (const ItemStack &stack, Client *client) const |
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in CItemDefManager.
Referenced by Client::afterContentReceived(), and Server::init().
|
pure virtual |
Implemented in CItemDefManager.
|
pure virtual |
Implemented in CItemDefManager.
Referenced by Client::handleCommand_ItemDef().
|
pure virtual |
Implemented in CItemDefManager.
Referenced by ModApiItem::l_register_alias_raw(), and TestCraft::testShapeless().
|
pure virtual |
Implemented in CItemDefManager.
Referenced by ModApiItem::l_register_item_raw(), and TestCraft::registerItemWithGroups().
|
pure virtual |
Implemented in CItemDefManager.
Referenced by ModApiItem::l_unregister_item_raw().