EntityRideableComponent
¶
文档版本:1.21.60.21
EntityRideableComponent
类,扩展自EntityComponent
。script_api.minecraft/server.entityrideablecomponent.description
常量¶
componentId
属性¶
controllingSeat
controllingSeat
:int32
- script_api.minecraft/server.entityrideablecomponent.controllingseat.description
crouchingSkipInteract
crouchingSkipInteract
:boolean
- script_api.minecraft/server.entityrideablecomponent.crouchingskipinteract.description
interactText
interactText
:string
- script_api.minecraft/server.entityrideablecomponent.interacttext.description
passengerMaxWidth
passengerMaxWidth
:float
- script_api.minecraft/server.entityrideablecomponent.passengermaxwidth.description
pullInEntities
pullInEntities
:boolean
- script_api.minecraft/server.entityrideablecomponent.pullinentities.description
riderCanInteract
riderCanInteract
:boolean
- script_api.minecraft/server.entityrideablecomponent.ridercaninteract.description
seatCount
seatCount
:int32
- script_api.minecraft/server.entityrideablecomponent.seatcount.description
方法¶
addRider
script_api.minecraft/server.entityrideablecomponent.addrider.description
- 返回值:
boolean
- script_api.minecraft/server.entityrideablecomponent.addrider.return
ejectRider
script_api.minecraft/server.entityrideablecomponent.ejectrider.description
- 返回值:
void
- script_api.minecraft/server.entityrideablecomponent.ejectrider.return
ejectRiders
script_api.minecraft/server.entityrideablecomponent.ejectriders.description
- 返回值:
void
- script_api.minecraft/server.entityrideablecomponent.ejectriders.return
getFamilyTypes
script_api.minecraft/server.entityrideablecomponent.getfamilytypes.description
- 返回值:
string[]
- script_api.minecraft/server.entityrideablecomponent.getfamilytypes.return
getRiders
script_api.minecraft/server.entityrideablecomponent.getriders.description
- 返回值:
Entity[]
- script_api.minecraft/server.entityrideablecomponent.getriders.return
getSeats
script_api.minecraft/server.entityrideablecomponent.getseats.description
- 返回值:
Seat[]
- script_api.minecraft/server.entityrideablecomponent.getseats.return