EntityTameableComponent
¶
文档版本:1.21.60.21
EntityTameableComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entitytameablecomponent.description
常量¶
componentId
属性¶
getTameItems
getTameItems
:ItemStack[]
- script_api.minecraft/server.entitytameablecomponent.gettameitems.description
isTamed
isTamed
:boolean
- script_api.minecraft/server.entitytameablecomponent.istamed.description
probability
probability
:float
- script_api.minecraft/server.entitytameablecomponent.probability.description
tamedToPlayer
tamedToPlayer
:Player
|undefined
- script_api.minecraft/server.entitytameablecomponent.tamedtoplayer.description
tamedToPlayerId
tamedToPlayerId
:string
|undefined
- script_api.minecraft/server.entitytameablecomponent.tamedtoplayerid.description
方法¶
tame
script_api.minecraft/server.entitytameablecomponent.tame.description
player
:Player
- script_api.minecraft/server.entitytameablecomponent.tame.player.description
- 返回值:
boolean
- script_api.minecraft/server.entitytameablecomponent.tame.return