Translations:Modding:Advanced Items/14/en

From Vintage Story Wiki

By overriding the Start(ICoreAPI) method, we can register our class. The RegisterItemClass function has two parameters: the first is our item class ID, noteably this is how we link to this class in our itemtype json files. Ensure that this is identical to the class we specified in our earlier asset file. The second parameter is the type of our item class.