实验性
只读
实验性
entity只读
实验性
type静态
只读
实验性
component实验性
The 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 for all mob entities.
示例: givePlayerElytra.ts