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.PassableState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canStandIn
(Block... blocks) static boolean
canStandIn
(Material... mat) static boolean
canStandOn
(Block block) static boolean
canStandOn
(Material mat) static Location
findRandomValidLocation
(Location base, int xrange, int yrange) static Location
findRandomValidLocation
(Location base, int xrange, int yrange, Function<Block, Boolean> filter) static Location
findRandomValidLocation
(Location base, int xrange, int yrange, Function<Block, Boolean> filter, Random random) static Location
findValidLocation
(Location location, int radius) static Location
findValidLocation
(Location location, int xradius, int yradius) static Location
findValidLocation
(Location location, int xradius, int yradius, Function<Block, Boolean> filter) static Location
findValidLocationAbove
(Location location, int radius) float
getCost
(BlockSource source, PathPoint point) static boolean
static boolean
static boolean
static boolean
isLiquidOrInLiquid
(Block block) isPassable
(BlockSource source, PathPoint point)
-
Constructor Details
-
MinecraftBlockExaminer
public MinecraftBlockExaminer()
-
-
Method Details
-
getCost
- Specified by:
getCost
in interfaceBlockExaminer
-
isPassable
- Specified by:
isPassable
in interfaceBlockExaminer
-
canStandIn
-
canStandIn
-
canStandOn
-
canStandOn
-
findRandomValidLocation
-
findRandomValidLocation
-
findRandomValidLocation
-
findValidLocation
-
findValidLocation
-
findValidLocation
-
findValidLocationAbove
-
isDoor
-
isGate
-
isLiquid
-
isLiquidOrInLiquid
-