EntityEquippableComponent
¶
文档版本:1.21.60.21
EntityEquippableComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entityequippablecomponent.description
常量¶
componentId
方法¶
getEquipment
script_api.minecraft/server.entityequippablecomponent.getequipment.description
equipmentSlot
:EquipmentSlot
- script_api.minecraft/server.entityequippablecomponent.getequipment.equipmentslot.description
- 返回值:
ItemStack
|undefined
- script_api.minecraft/server.entityequippablecomponent.getequipment.return
getEquipmentSlot
script_api.minecraft/server.entityequippablecomponent.getequipmentslot.description
equipmentSlot
:EquipmentSlot
- script_api.minecraft/server.entityequippablecomponent.getequipmentslot.equipmentslot.description
setEquipment
script_api.minecraft/server.entityequippablecomponent.setequipment.description
equipmentSlot
:EquipmentSlot
- script_api.minecraft/server.entityequippablecomponent.setequipment.equipmentslot.description
itemStack
?:ItemStack
=null
- script_api.minecraft/server.entityequippablecomponent.setequipment.itemstack.description
- 返回值:
boolean
- script_api.minecraft/server.entityequippablecomponent.setequipment.return