Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<BlockPathTypes>Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddone()getBlockPathType(BlockGetter p_77467_, int p_77468_, int p_77469_, int p_77470_) getBlockPathType(BlockGetter p_77472_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_, int p_77477_, int p_77478_, int p_77479_, boolean p_77480_, boolean p_77481_) protected BlockPathTypesgetCachedBlockType(int p_192968_, int p_192969_, int p_192970_) getGoal(double p_77459_, double p_77460_, double p_77461_) intgetNeighbors(Node[] p_77483_, Node p_77484_) protected NodegetNode(int p_77463_, int p_77464_, int p_77465_) getStart()protected booleanisDiagonalNodeValid(Node p_192964_, Node p_192965_, Node p_192966_) protected booleanisNodeValid(Node p_192962_) voidprepare(PathNavigationRegion p_192959_, Mob p_192960_) Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, getNode, setCanFloat, setCanOpenDoors, setCanPassDoors
-
Field Details
-
allowBreaching
private final boolean allowBreaching -
pathTypesByPosCache
-
-
Constructor Details
-
SwimNodeEvaluator
public SwimNodeEvaluator(boolean p_77457_)
-
-
Method Details
-
done
public void done()- Overrides:
donein classNodeEvaluator
-
getStart
- Specified by:
getStartin classNodeEvaluator
-
getGoal
- Specified by:
getGoalin classNodeEvaluator
-
getNeighbors
- Specified by:
getNeighborsin classNodeEvaluator
-
isNodeValid
-
isDiagonalNodeValid
-
getNode
- Overrides:
getNodein classNodeEvaluator
-
getCachedBlockType
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77467_, int p_77468_, int p_77469_, int p_77470_) - Specified by:
getBlockPathTypein classNodeEvaluator
-
getBlockPathType
public BlockPathTypes getBlockPathType(BlockGetter p_77472_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_, int p_77477_, int p_77478_, int p_77479_, boolean p_77480_, boolean p_77481_) - Specified by:
getBlockPathTypein classNodeEvaluator