Class MinecraftBlockExaminer
java.lang.Object
net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- All Implemented Interfaces:
BlockExaminer
-
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).static booleancanStandIn(Block... blocks) static booleancanStandIn(Material... mat) static booleancanStandIn(Material mat, BlockData data) static booleancanStandOn(Block block) static booleancanStandOn(Material mat) static booleancanStandOn(Material mat, BlockData data) static LocationfindRandomValidLocation(Location base, int xrange, int yrange) static LocationfindRandomValidLocation(Location base, int xrange, int yrange, Function<Block, Boolean> filter) static LocationfindRandomValidLocation(Location base, int xrange, int yrange, Function<Block, Boolean> filter, Random random) static LocationfindValidLocation(Location location, int radius) static LocationfindValidLocation(Location location, int xradius, int yradius) static LocationfindValidLocation(Location location, int xradius, int yradius, Function<Block, Boolean> filter) static LocationfindValidLocationAbove(Location location, int radius) floatgetCost(BlockSource source, PathPoint point) static booleanstatic booleanstatic booleanstatic booleanisLiquidOrWaterlogged(Block block) static booleanisLiquidOrWaterlogged(Material type, BlockData data) isPassable(BlockSource source, PathPoint point) Determines if the entity can pass through the block at this position.
-
Constructor Details
-
MinecraftBlockExaminer
public MinecraftBlockExaminer()
-
-
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
-
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
-
canStandIn
-
canStandIn
-
canStandIn
-
canStandOn
-
canStandOn
-
canStandOn
-
findRandomValidLocation
-
findRandomValidLocation
-
findRandomValidLocation
-
findValidLocation
-
findValidLocation
-
findValidLocation
-
findValidLocationAbove
-
isDoor
-
isGate
-
isLiquid
-
isLiquidOrWaterlogged
-
isLiquidOrWaterlogged
-