Class: EntityNavigationFlyComponent
Allows this entity to generate paths in the air (for example, like Minecraft parrots do.)
Extends
Constructors
new EntityNavigationFlyComponent()
private
new EntityNavigationFlyComponent():EntityNavigationFlyComponent
Returns
Overrides
EntityNavigationComponent
. constructor
Properties
avoidDamageBlocks
readonly
avoidDamageBlocks:boolean
Remarks
Tells the pathfinder to avoid blocks that cause damage when finding a path.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. avoidDamageBlocks
avoidPortals
readonly
avoidPortals:boolean
Remarks
Tells the pathfinder to avoid portals (like nether portals) when finding a path.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. avoidPortals
avoidSun
readonly
avoidSun:boolean
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.
Inherited from
EntityNavigationComponent
. avoidSun
avoidWater
readonly
avoidWater:boolean
Remarks
Tells the pathfinder to avoid water when creating a path.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. avoidWater
canBreach
readonly
canBreach:boolean
Remarks
Tells the pathfinder whether or not it can jump out of water (like a dolphin).
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canBreach
canBreakDoors
readonly
canBreakDoors:boolean
Remarks
Tells the pathfinder that it can path through a closed door and break it.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canBreakDoors
canFloat
readonly
canFloat:boolean
Remarks
Tells the pathfinder whether or not it can float.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canFloat
canJump
readonly
canJump:boolean
Remarks
Tells the pathfinder whether or not it can jump up blocks.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canJump
canOpenDoors
readonly
canOpenDoors:boolean
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.
Inherited from
EntityNavigationComponent
. canOpenDoors
canOpenIronDoors
readonly
canOpenIronDoors:boolean
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.
Inherited from
EntityNavigationComponent
. canOpenIronDoors
canPassDoors
readonly
canPassDoors:boolean
Remarks
Whether a path can be created through a door.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canPassDoors
canPathFromAir
readonly
canPathFromAir:boolean
Remarks
Tells the pathfinder that it can start pathing when in the air.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canPathFromAir
canPathOverLava
readonly
canPathOverLava:boolean
Remarks
Tells the pathfinder whether or not it can travel on the surface of the lava.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canPathOverLava
canPathOverWater
readonly
canPathOverWater:boolean
Remarks
Tells the pathfinder whether or not it can travel on the surface of the water.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canPathOverWater
canSink
readonly
canSink:boolean
Remarks
Tells the pathfinder whether or not it will be pulled down by gravity while in water.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canSink
canSwim
readonly
canSwim:boolean
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.
Inherited from
EntityNavigationComponent
. canSwim
canWalk
readonly
canWalk:boolean
Remarks
Tells the pathfinder whether or not it can walk on the ground outside water.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canWalk
canWalkInLava
readonly
canWalkInLava:boolean
Remarks
Tells the pathfinder whether or not it can travel in lava like walking on ground.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. canWalkInLava
entity
Beta
readonly
entity:Entity
Remarks
The entity that owns this component. The entity will be undefined if it has been removed.
Inherited from
EntityNavigationComponent
. entity
isAmphibious
readonly
isAmphibious:boolean
Remarks
Tells the pathfinder whether or not it can walk on the ground or go underwater.
Throws
This property can throw when used.
Inherited from
EntityNavigationComponent
. isAmphibious
typeId
readonly
typeId:string
Remarks
Identifier of the component.
Inherited from
EntityNavigationComponent
. typeId
componentId
static
readonly
componentId:"minecraft:navigation.fly"
='minecraft:navigation.fly'
Methods
isValid()
isValid():
boolean
Returns
boolean
Whether the component is valid.
Inherited from
EntityNavigationComponent
. isValid
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.