EntityRideableComponent
¶
文档版本:1.21.60.21
EntityRideableComponent
类,扩展自IEntityComponent
。script_api.mojang-minecraft.entityrideablecomponent.description
属性¶
controllingSeat
controllingSeat
:int32
- script_api.mojang-minecraft.entityrideablecomponent.controllingseat.description
crouchingSkipInteract
crouchingSkipInteract
:boolean
- script_api.mojang-minecraft.entityrideablecomponent.crouchingskipinteract.description
familyTypes
familyTypes
:string[]
- script_api.mojang-minecraft.entityrideablecomponent.familytypes.description
interactText
interactText
:string
- script_api.mojang-minecraft.entityrideablecomponent.interacttext.description
pullInEntities
pullInEntities
:boolean
- script_api.mojang-minecraft.entityrideablecomponent.pullinentities.description
riderCanInteract
riderCanInteract
:boolean
- script_api.mojang-minecraft.entityrideablecomponent.ridercaninteract.description
seatCount
seatCount
:int32
- script_api.mojang-minecraft.entityrideablecomponent.seatcount.description
seats
seats
:Seat[]
- script_api.mojang-minecraft.entityrideablecomponent.seats.description
方法¶
addRider
script_api.mojang-minecraft.entityrideablecomponent.addrider.description
rider
:Entity
- script_api.mojang-minecraft.entityrideablecomponent.addrider.rider.description
- 返回值:
boolean
- script_api.mojang-minecraft.entityrideablecomponent.addrider.return
ejectRider
script_api.mojang-minecraft.entityrideablecomponent.ejectrider.description
rider
:Entity
- script_api.mojang-minecraft.entityrideablecomponent.ejectrider.rider.description
- 返回值:
void
- script_api.mojang-minecraft.entityrideablecomponent.ejectrider.return
ejectRiders
script_api.mojang-minecraft.entityrideablecomponent.ejectriders.description
- 返回值:
void
- script_api.mojang-minecraft.entityrideablecomponent.ejectriders.return