跳转至

EntityLeashableComponent

文档版本:1.21.0.24

EntityLeashableComponent类,扩展自IEntityComponent。script_api.mojang-minecraft.entityleashablecomponent.description

属性

softDistance
read-only softDistance: float;
softDistancefloat
script_api.mojang-minecraft.entityleashablecomponent.softdistance.description

方法

leash

script_api.mojang-minecraft.entityleashablecomponent.leash.description

leash(leashHolder: Entity): void
leashHolderEntity
script_api.mojang-minecraft.entityleashablecomponent.leash.leashholder.description
返回值:void
script_api.mojang-minecraft.entityleashablecomponent.leash.return
unleash

script_api.mojang-minecraft.entityleashablecomponent.unleash.description

unleash(): void
返回值:void
script_api.mojang-minecraft.entityleashablecomponent.unleash.return