Class FlyingBlockExaminer
java.lang.Object
net.citizensnpcs.api.astar.pathfinder.FlyingBlockExaminer
- All Implemented Interfaces:
BlockExaminer,BlockExaminer.NeighbourGeneratorBlockExaminer
public class FlyingBlockExaminer
extends Object
implements BlockExaminer.NeighbourGeneratorBlockExaminer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.citizensnpcs.api.astar.pathfinder.BlockExaminer
BlockExaminer.NeighbourGeneratorBlockExaminer, BlockExaminer.PassableState, BlockExaminer.StandableState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanStandAt(BlockSource source, PathPoint point) Determines if the entity can stand at this position (checks block below for support).floatgetCost(BlockSource source, PathPoint point) getNeighbours(BlockSource source, PathPoint point) isPassable(BlockSource source, PathPoint point) Determines if the entity can pass through the block at this position.
-
Constructor Details
-
FlyingBlockExaminer
public FlyingBlockExaminer()
-
-
Method Details
-
canStandAt
Description copied from interface:BlockExaminerDetermines if the entity can stand at this position (checks block below for support). First STANDABLE result wins during evaluation.- Specified by:
canStandAtin interfaceBlockExaminer- Returns:
- STANDABLE if position has valid support, NOT_STANDABLE if not, IGNORE to defer
-
getCost
- Specified by:
getCostin interfaceBlockExaminer
-
getNeighbours
- Specified by:
getNeighboursin interfaceBlockExaminer.NeighbourGeneratorBlockExaminer
-
isPassable
Description copied from interface:BlockExaminerDetermines if the entity can pass through the block at this position. First PASSABLE result wins during evaluation.- Specified by:
isPassablein interfaceBlockExaminer
-