Class SwimmingExaminer
java.lang.Object
net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- 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).booleanfloatgetCost(BlockSource source, PathPoint point) isPassable(BlockSource source, PathPoint point) Determines if the entity can pass through the block at this position.static booleanisWaterMob(Entity entity) voidsetCanSwimInLava(boolean canSwimInLava)
-
Constructor Details
-
SwimmingExaminer
-
-
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
-
canSwimInLava
public boolean canSwimInLava() -
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
-
setCanSwimInLava
public void setCanSwimInLava(boolean canSwimInLava) -
isWaterMob
-