只读entity只读is只读total只读total只读type静态 只读componentThe equipment slot. e.g. "head", "chest", "offhand"
Returns the item equipped to the given EquipmentSlot. If empty, returns undefined.
The equipment slot. e.g. "head", "chest", "offhand".
Returns the ContainerSlot corresponding to the given EquipmentSlot.
世界修改The equipment slot. e.g. "head", "chest", "offhand".
可选itemStack: ItemStackThe item to equip. If undefined, clears the slot.
Provides access to a mob's equipment slots. This component exists on player entities.
示例: givePlayerElytra.ts