Appearance
twine / BenchMeta
Interface: BenchMeta โ
Defined in: twine/src/item/types.ts:92
What Bench declares: a workbench that fits for's upgrades.
Extends โ
ItemDeclaration
Properties โ
background? โ
optionalbackground?:string
Defined in: twine/src/item/types.ts:95
base โ
base:
number
Defined in: twine/src/item/types.ts:101
Slots for the item being upgraded, the result, and the button that takes upgrades off.
carry? โ
optionalcarry?:Pick<BenchCarry,"item"|"slot"|"background"|"tag">
Defined in: twine/src/item/types.ts:105
Opens the bench from the held item. A module's @BenchCarry adds slots and hooks.
env? โ
optionalenv?:BuildEnv[]
Defined in: twine/src/item/types.ts:10
Build environments it's in, e.g. ["dev"]. Omit for all.
Inherited from โ
ItemDeclaration.env
filler โ
filler:
ItemLike
Defined in: twine/src/item/types.ts:99
The locked item in unused slots.
for โ
for:
ItemClassRef
Defined in: twine/src/item/types.ts:93
group? โ
optionalgroup?:string
Defined in: twine/src/item/types.ts:14
Its page in the admin item menu (/function <ns>:items). Defaults to "Other".
Inherited from โ
ItemDeclaration.group
look? โ
optionallook?:ModelRef
Defined in: twine/src/item/types.ts:97
The model the placer and the placed bench show.
menu? โ
optionalmenu?:false
Defined in: twine/src/item/types.ts:18
false keeps it out of the menu, e.g. for a filler item.
Inherited from โ
ItemDeclaration.menu
name โ
name:
string
Defined in: twine/src/item/types.ts:8
Stable id: its module name, function folder, and give function <name>/give.
Inherited from โ
ItemDeclaration.name
out โ
out:
number
Defined in: twine/src/item/types.ts:102
rarity? โ
optionalrarity?:Rarity
Defined in: twine/src/item/types.ts:12
Its rarity: vanilla's rarity component, plus a lore line naming it in that colour.
Inherited from โ
ItemDeclaration.rarity
recipe? โ
optionalrecipe?: (self) =>RecipeDef
Defined in: twine/src/item/types.ts:107
A recipe that makes the placer, given it. Registered as <name>.
Parameters โ
self โ
ItemValue
Returns โ
RecipeDef
strip โ
strip:
number
Defined in: twine/src/item/types.ts:103
tags? โ
optionaltags?:string[]
Defined in: twine/src/item/types.ts:16
More menu pages it shows on, one per tag.
Inherited from โ
ItemDeclaration.tags
title โ
title:
string
Defined in: twine/src/item/types.ts:94