Class SwimNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.SwimNodeEvaluator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathType> Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluatorcanFloat, canOpenDoors, canPassDoors, canWalkOverFences, currentContext, entityDepth, entityHeight, entityWidth, mob, nodes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddone()protected NodefindAcceptedNode(int p_263032_, int p_263066_, int p_263105_) protected PathTypegetCachedBlockType(int p_192968_, int p_192969_, int p_192970_) intgetNeighbors(Node[] p_77483_, Node p_77484_) getPathType(PathfindingContext p_330490_, int p_326812_, int p_326835_, int p_326945_) getPathTypeOfMob(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) getStart()getTarget(double p_326917_, double p_326806_, double p_326896_) private static booleanprotected booleanisNodeValid(Node p_192962_) voidprepare(PathNavigationRegion p_192959_, Mob p_192960_) Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluatorcanFloat, canOpenDoors, canPassDoors, canWalkOverFences, getNode, getNode, getPathType, getTargetNodeAt, isBurningBlock, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
- 
Field Details- 
allowBreachingprivate final boolean allowBreaching
- 
pathTypesByPosCache
 
- 
- 
Constructor Details- 
SwimNodeEvaluatorpublic SwimNodeEvaluator(boolean p_77457_) 
 
- 
- 
Method Details
- 
donepublic void done()- Overrides:
- donein class- NodeEvaluator
 
- 
getStart- Specified by:
- getStartin class- NodeEvaluator
 
- 
getTarget- Specified by:
- getTargetin class- NodeEvaluator
 
- 
getNeighbors- Specified by:
- getNeighborsin class- NodeEvaluator
 
- 
isNodeValid
- 
hasMalus
- 
findAcceptedNode
- 
getCachedBlockType
- 
getPathTypepublic PathType getPathType(PathfindingContext p_330490_, int p_326812_, int p_326835_, int p_326945_) - Specified by:
- getPathTypein class- NodeEvaluator
 
- 
getPathTypeOfMobpublic PathType getPathTypeOfMob(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) - Specified by:
- getPathTypeOfMobin class- NodeEvaluator