Beta Private constructorReadonly canThis property can throw when used.
Readonly entityThe entity that owns this component. The entity will be undefined if it has been removed.
Readonly hardThis property can throw when used.
Readonly isThis property can throw when used.
Optional Readonly leashThis property can throw when used.
Optional Readonly leashThis property can throw when used.
Readonly maxThis property can throw when used.
Readonly softDistance in blocks at which the 'spring' effect starts acting to keep this entity close to the entity that leashed it.
This property can throw when used.
Readonly typeIdentifier of the component.
Static Readonly componentThis function can't be called in read-only mode.
This function can throw errors.
Allows this entity to be leashed and defines the conditions and events for this entity when is leashed.