Translations:Modding:Advanced Items/14/en

From Vintage Story Wiki
Revision as of 14:17, 24 March 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.