Private
constructorReadonly
entityThis property can't be read in early-execution mode.
Readonly
isReturns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
This property can't be read in early-execution mode.
Readonly
totalThis property can't be read in early-execution mode.
Readonly
totalThis property can't be read in early-execution mode.
Readonly
typeThis property can't be read in early-execution mode.
Static
Readonly
componentThe equipment slot. e.g. "head", "chest", "offhand"
Returns the item equipped to the given EquipmentSlot. If empty, returns undefined.
This function can't be called in early-execution mode.
The equipment slot. e.g. "head", "chest", "offhand".
Returns the ContainerSlot corresponding to the given EquipmentSlot.
This function can't be called in early-execution mode.
The equipment slot. e.g. "head", "chest", "offhand".
Optional
itemStack: ItemStackThe item to equip. If undefined, clears the slot.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
Provides access to a mob's equipment slots. This component exists on player entities.
Example: givePlayerElytra.ts
Example: clearOffhand.ts
Example: getMainhandSlot.js
This component only exists for all players. It does not exist on all entities.