Class: EntityNavigationComponent
entity componentBeta
Allows this entity to generate paths that include vertical walls (for example, like Minecraft spiders do.)
Extends
Extended by
EntityNavigationClimbComponentEntityNavigationFloatComponentEntityNavigationFlyComponentEntityNavigationGenericComponentEntityNavigationHoverComponentEntityNavigationWalkComponent
Properties
avoidDamageBlocks
readonlyavoidDamageBlocks:boolean
Beta
Remarks
Tells the pathfinder to avoid blocks that cause damage when finding a path.
Throws
This property can throw when used.
avoidPortals
readonlyavoidPortals:boolean
Beta
Remarks
Tells the pathfinder to avoid portals (like nether portals) when finding a path.
Throws
This property can throw when used.
avoidSun
readonlyavoidSun:boolean
Beta
Remarks
Whether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths.
Throws
This property can throw when used.
avoidWater
readonlyavoidWater:boolean
Beta
Remarks
Tells the pathfinder to avoid water when creating a path.
Throws
This property can throw when used.
canBreach
readonlycanBreach:boolean
Beta
Remarks
Tells the pathfinder whether or not it can jump out of water (like a dolphin).
Throws
This property can throw when used.
canBreakDoors
readonlycanBreakDoors:boolean
Beta
Remarks
Tells the pathfinder that it can path through a closed door and break it.
Throws
This property can throw when used.
canFloat
readonlycanFloat:boolean
Beta
Remarks
Tells the pathfinder whether or not it can float.
Throws
This property can throw when used.
canJump
readonlycanJump:boolean
Beta
Remarks
Tells the pathfinder whether or not it can jump up blocks.
Throws
This property can throw when used.
canOpenDoors
readonlycanOpenDoors:boolean
Beta
Remarks
Tells the pathfinder that it can path through a closed door assuming the AI will open the door.
Throws
This property can throw when used.
canOpenIronDoors
readonlycanOpenIronDoors:boolean
Beta
Remarks
Tells the pathfinder that it can path through a closed iron door assuming the AI will open the door.
Throws
This property can throw when used.
canPassDoors
readonlycanPassDoors:boolean
Beta
Remarks
Whether a path can be created through a door.
Throws
This property can throw when used.
canPathFromAir
readonlycanPathFromAir:boolean
Beta
Remarks
Tells the pathfinder that it can start pathing when in the air.
Throws
This property can throw when used.
canPathOverLava
readonlycanPathOverLava:boolean
Beta
Remarks
Tells the pathfinder whether or not it can travel on the surface of the lava.
Throws
This property can throw when used.
canPathOverWater
readonlycanPathOverWater:boolean
Beta
Remarks
Tells the pathfinder whether or not it can travel on the surface of the water.
Throws
This property can throw when used.
canSink
readonlycanSink:boolean
Beta
Remarks
Tells the pathfinder whether or not it will be pulled down by gravity while in water.
Throws
This property can throw when used.
canSwim
readonlycanSwim:boolean
Beta
Remarks
Tells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path.
Throws
This property can throw when used.
canWalk
readonlycanWalk:boolean
Beta
Remarks
Tells the pathfinder whether or not it can walk on the ground outside water.
Throws
This property can throw when used.
canWalkInLava
readonlycanWalkInLava:boolean
Beta
Remarks
Tells the pathfinder whether or not it can travel in lava like walking on ground.
Throws
This property can throw when used.
entity
readonlyentity:Entity
Beta
Remarks
拥有此组件的实体。如果实体已被移除,则实体将为 undefined。
The entity that owns this component. The entity will be undefined if it has been removed.
Throws
This property can throw when used.
Inherited from
isAmphibious
readonlyisAmphibious:boolean
Beta
Remarks
Tells the pathfinder whether or not it can walk on the ground or go underwater.
Throws
This property can throw when used.
isValid
readonlyisValid:boolean
Beta
Remarks
返回该组件是否有效。如果组件的拥有者有效,并且满足组件所需的任何额外验证,则该组件被视为有效。
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
Inherited from
typeId
readonlytypeId:string
Beta
Remarks
组件的标识符。
Identifier of the component.
