Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

twine / Upgrade

Function: Upgrade() โ€‹

Upgrade(meta): ClassDecorator

Defined in: twine/src/item/decorators.ts:40

Declares an upgrade: an item that installs its enchantment on any item that lists it in upgrades. One enchantment, <name>, serves every item that takes it.

Parameters โ€‹

meta โ€‹

UpgradeMeta

Returns โ€‹

ClassDecorator

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.