Package net.minecraft.entity.ai.pathing
Class AmphibiousPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.LandPathNodeMaker
net.minecraft.entity.ai.pathing.AmphibiousPathNodeMaker
public class AmphibiousPathNodeMaker extends LandPathNodeMaker
-
Field Summary
Fields Modifier and Type Field Description private booleanfield_28358private floatoldWalkablePenaltyprivate floatoldWaterBorderPenaltyFields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
waterPathNodeTypeWeightFields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache -
Constructor Summary
Constructors Constructor Description AmphibiousPathNodeMaker(boolean bool) -
Method Summary
Modifier and Type Method Description protected PathNodeTypeadjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)voidclear()PathNodeTypegetDefaultNodeType(BlockView world, int x, int y, int z)Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsprivate doublegetFeetY(BlockPos pos)TargetPathNodegetNode(double x, double y, double z)private PathNodegetPathNode(int x, int y, int z, int maxYStep, double prevFeetY)PathNodegetStart()intgetSuccessors(PathNode[] successors, PathNode node)voidinit(ChunkCache cachedWorld, MobEntity entity)Methods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeType, getNodeTypeFromNeighborsMethods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, getNode, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
field_28358
private final boolean field_28358 -
oldWalkablePenalty
private float oldWalkablePenalty -
oldWaterBorderPenalty
private float oldWaterBorderPenalty
-
-
Constructor Details
-
AmphibiousPathNodeMaker
public AmphibiousPathNodeMaker(boolean bool)
-
-
Method Details
-
init
- Overrides:
initin classLandPathNodeMaker
-
clear
public void clear()- Overrides:
clearin classLandPathNodeMaker
-
getStart
- Overrides:
getStartin classLandPathNodeMaker
-
getNode
- Overrides:
getNodein classLandPathNodeMaker
-
getSuccessors
- Overrides:
getSuccessorsin classLandPathNodeMaker
-
getFeetY
-
getPathNode
-
adjustNodeType
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)- Overrides:
adjustNodeTypein classLandPathNodeMaker
-
getDefaultNodeType
Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doors- Overrides:
getDefaultNodeTypein classLandPathNodeMaker
-