Class ItemType
- Namespace
- Vintagestory.ServerMods.NoObf
- Assembly
- VSEssentials.dll
Defines an in-game item using a json file. Note that all json properties for items come from the base CollectibleType and RegistryObjectType classes. Any json file inside the "assets/itemtypes" folder will be loaded as an itemtype in the game.
[JsonObject(MemberSerialization.OptIn)]
public class ItemType : CollectibleType
- Inheritance
-
ItemType
- Inherited Members
Examples
{
"code": "strawdummy",
"class": "ItemStrawDummy",
"shape": {
"base": "entity/land/strawdummy"
},
"creativeinventory": {
...
},
"heldTpIdleAnimation": "holdunderarm",
"maxstacksize": 1,
"combustibleProps": {
...
},
"guiTransform": {
...
},
"fpHandTransform": {
...
},
"tpHandTransform": {
...
}
}