Skip to content

API reference Obsidian.API.AI

IPathBody interface

The body a path search runs for: its position, size, world view and movement capabilities. Mobs supply one through their navigator; plugins may supply their own to compute paths for any body (see IPathfinder).

public interface IPathBody

In Obsidian.API.

Properties

bool CanFloat { get; }bool CanOpenDoors { get; }EntityDimension Dimension { get; }bool FlyingNavigation { get; }

FollowRange

float FollowRange { get; }

The range the search may explore from the start.

bool InWater { get; }ILevel Level { get; }

MaxFall

int MaxFall { get; }

The fall distance the search allows.

VectorD Position { get; }

StepHeight

float StepHeight { get; }

The body's step height (minecraft:generic.step_height).

bool SwimmingNavigation { get; }IPathTerrain Terrain { get; }

Methods

Malus(PathNodeType)

float Malus(PathNodeType type);

The malus (path cost penalty) for a node type; negative values are hazards the search avoids.

NodeCost(Vector, IBlock, IBlock)

float NodeCost(Vector feetPosition, IBlock feet, IBlock floor);

The cost of standing at a cell, given its feet and floor blocks; negative rejects the cell.

On this page