Initial data from which to construct the Item
Optionalcontext: ConstructionContextConstruction context options
Is this item usable at base level, disregarding per-action details.
Is the item is fully functional.
This returns composite result of if the item is equipped, has quantity, is not disabled, is not out of charges, etc. and is not representative if the item can be set active or not via setActive.
InternalPrepare data dependent on other items
For supporting actions and changes in fromUuid()
Synced with Foundry v12.331
Item name
OptionalasPlayer: boolean = falseIf true, return value players see.
Set item's active state.
Active state
Optionalcontext: objectOptional update context
Static_InternalCollect information on supplemental items and create them
Array of items to draw supplemental data from
Owner
Static_On-Create Operation
Post-create processing so awaiting the original operation has all secondary updates completed when it returns.
Documents
Operations and context data
Triggering user
Static_On-Delete Operation
Post-delete processing so awaiting the original operation has all secondary updates completed when it returns.
Documents
Operations and context data
Triggering user
Static_On-Update Operation
Post-update processing so awaiting the original operation has all secondary updates completed when it returns.
Documents
Operations and context data
Triggering user
StaticcreateItem create dialog.
Initial item data
Initial item data
Optionalcontext: {Additional options.
Optionaloptions?: objectDialog context options.
Optionalpack?: null | stringPack ID parameter passed to Item.create() options
Optionalparent?: null | Actor<"base" | ModuleSubType>Parent parameter passed to Item.create() options
Optionaltypes?: string[]Item types to limit creation choices to.
Synchronized with Foundry VTT v13.347
StaticdefaultOverride to provide naming by subType potential.
Context where the name would be used
Optionalpack?: null | stringPack this would be within
Optionalparent?: null | DocumentParent document
OptionalsubType?: stringDocument subtype. Nonstandard option.
Optionaltype?: stringType
Synced with Foundry v13.351
StaticgetInternalAdd default artwork.
OptionalitemData: objectItem data
Staticmigrate
Base item
From which all other item documents inherit from.