EntityLeashableComponent
¶
文档版本:1.21.0.24
EntityLeashableComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entityleashablecomponent.description
常量¶
componentId
属性¶
softDistance
softDistance
:float
- script_api.minecraft/server.entityleashablecomponent.softdistance.description
方法¶
leash
script_api.minecraft/server.entityleashablecomponent.leash.description
leashHolder
:Entity
- script_api.minecraft/server.entityleashablecomponent.leash.leashholder.description
- 返回值:
void
- script_api.minecraft/server.entityleashablecomponent.leash.return
unleash
script_api.minecraft/server.entityleashablecomponent.unleash.description
- 返回值:
void
- script_api.minecraft/server.entityleashablecomponent.unleash.return