25typedef std::vector<video::SColor>
Palette;
122 void serialize(std::ostream &os, u16 protocol_version)
const;
123 void deSerialize(std::istream &is, u16 protocol_version);
138 virtual const std::string &
getAlias(
const std::string &name)
const=0;
140 virtual void getAll(std::set<std::string> &result)
const=0;
142 virtual bool isKnown(
const std::string &name)
const=0;
144 virtual void serialize(std::ostream &os, u16 protocol_version)=0;
168 {
return video::SColor(0); }
192 const std::string &convert_to)=0;
194 virtual void deSerialize(std::istream &is, u16 protocol_version)=0;
virtual void getAll(std::set< std::string > &result) const =0
virtual video::SColor getItemstackColor(const ItemStack &stack, Client *client) const
Definition itemdef.h:166
virtual ItemMesh * getWieldMesh(const ItemStack &item, Client *client) const
Get wield mesh.
Definition itemdef.h:157
IItemDefManager()=default
virtual void serialize(std::ostream &os, u16 protocol_version)=0
virtual const std::string & getAlias(const std::string &name) const =0
virtual const ItemDefinition & get(const std::string &name) const =0
virtual Palette * getPalette(const ItemStack &item, Client *client) const
Definition itemdef.h:161
virtual bool isKnown(const std::string &name) const =0
virtual video::ITexture * getInventoryTexture(const ItemStack &item, Client *client) const
Definition itemdef.h:150
virtual ~IItemDefManager()=default
virtual void applyTextureOverrides(const std::vector< TextureOverride > &overrides)=0
virtual ~IWritableItemDefManager()=default
IWritableItemDefManager()=default
virtual void registerItem(const ItemDefinition &def)=0
virtual void deSerialize(std::istream &is, u16 protocol_version)=0
virtual void registerAlias(const std::string &name, const std::string &convert_to)=0
virtual void unregisterItem(const std::string &name)=0
core::vector3df v3f
Definition irr_v3d.h:11
IWritableItemDefManager * createItemDefManager()
Definition itemdef.cpp:677
std::vector< video::SColor > Palette
Definition itemdef.h:25
ItemType
Definition itemdef.h:34
@ ITEM_TOOL
Definition itemdef.h:38
@ ITEM_NODE
Definition itemdef.h:36
@ ITEM_CRAFT
Definition itemdef.h:37
@ ItemType_END
Definition itemdef.h:39
@ ITEM_NONE
Definition itemdef.h:35
TouchInteractionMode
Definition itemdef.h:43
@ LONG_DIG_SHORT_PLACE
Definition itemdef.h:44
@ TouchInteractionMode_USER
Definition itemdef.h:46
@ SHORT_DIG_LONG_PLACE
Definition itemdef.h:45
@ TouchInteractionMode_END
Definition itemdef.h:47
std::unordered_map< std::string, int > ItemGroupList
Definition itemgroup.h:10
Definition activeobjectmgr.cpp:11
Definition clientmap.h:35
Definition clientmap.h:30
PointedThingType
Definition pointedthing.h:14
u16 stack_max
Definition itemdef.h:89
bool wallmounted_rotate_vertical
Definition itemdef.h:110
SoundSpec sound_use_air
Definition itemdef.h:102
TouchInteraction touch_interaction
Definition itemdef.h:112
ItemGroupList groups
Definition itemdef.h:99
std::string wield_image
Definition itemdef.h:80
ItemDefinition()
Definition itemdef.cpp:96
ItemType type
Definition itemdef.h:70
f32 range
Definition itemdef.h:103
SoundSpec sound_place_failed
Definition itemdef.h:101
std::optional< Pointabilities > pointabilities
Definition itemdef.h:92
std::string palette_image
Definition itemdef.h:82
std::string node_placement_prediction
Definition itemdef.h:108
ToolCapabilities * tool_capabilities
Definition itemdef.h:95
std::string inventory_overlay
Definition itemdef.h:79
std::optional< u8 > place_param2
Definition itemdef.h:109
std::optional< WearBarParams > wear_bar_params
Definition itemdef.h:97
void reset()
Definition itemdef.cpp:158
std::string short_description
Definition itemdef.h:73
SoundSpec sound_place
Definition itemdef.h:100
std::string name
Definition itemdef.h:71
~ItemDefinition()
Definition itemdef.cpp:145
bool usable
Definition itemdef.h:90
ItemDefinition & operator=(const ItemDefinition &def)
Definition itemdef.cpp:107
v3f wield_scale
Definition itemdef.h:84
void deSerialize(std::istream &is, u16 protocol_version)
Definition itemdef.cpp:267
std::string wield_overlay
Definition itemdef.h:81
std::string inventory_image
Definition itemdef.h:78
video::SColor color
Definition itemdef.h:83
void serialize(std::ostream &os, u16 protocol_version) const
Definition itemdef.cpp:190
std::string description
Definition itemdef.h:72
SoundSpec sound_use
Definition itemdef.h:102
void resetInitial()
Definition itemdef.cpp:150
bool liquids_pointable
Definition itemdef.h:91
Definition wieldmesh.h:71
Definition inventory.h:19
Describes the sound information for playback.
Definition sound.h:20
TouchInteractionMode getMode(const ItemDefinition &selected_def, PointedThingType pointed_type) const
Definition itemdef.cpp:34
void serialize(std::ostream &os) const
Definition itemdef.cpp:65
TouchInteractionMode pointed_object
Definition itemdef.h:54
TouchInteraction()
Definition itemdef.cpp:27
void deSerialize(std::istream &is)
Definition itemdef.cpp:72
TouchInteractionMode pointed_node
Definition itemdef.h:53
TouchInteractionMode pointed_nothing
Definition itemdef.h:52