Per-bucket command contributions a class can declare via
static commandContributions: CommandContributions. Mixins, concrete Stuff
classes, and shadows all use the same shape.
Each bucket holds YAML filenames; CommandApi.getCommand resolves
them at runtime.
self — commands the host can issue against itself
(e.g. inventory, look).
inventory — commands the host gains when this thing is in
its inventory (e.g. a wand grants zap).
environment — commands the host gains when this thing is in
its environment (e.g. a notice board grants
read).
peers — commands the host gains when this thing is a
peer CommandGiver in its environment (e.g. a
conversational NPC grants tell).
Discovery looks for the bucket as either a filename array or
undefined (treated as no contribution). Empty arrays are fine.
Per-bucket command contributions a class can declare via
static commandContributions: CommandContributions. Mixins, concrete Stuff classes, and shadows all use the same shape.Each bucket holds YAML filenames;
CommandApi.getCommandresolves them at runtime.self— commands the host can issue against itself (e.g.inventory,look).inventory— commands the host gains when this thing is in its inventory (e.g. a wand grantszap).environment— commands the host gains when this thing is in its environment (e.g. a notice board grantsread).peers— commands the host gains when this thing is a peer CommandGiver in its environment (e.g. a conversational NPC grantstell).Discovery looks for the bucket as either a filename array or
undefined(treated as no contribution). Empty arrays are fine.