Package net.minecraft.entity.ai.pathing
Class WaterPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.WaterPathNodeMaker
public class WaterPathNodeMaker extends PathNodeMaker
-
Field Summary
Fields Modifier and Type Field Description private booleancanJumpOutOfWaterFields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache -
Constructor Summary
Constructors Constructor Description WaterPathNodeMaker(boolean canJumpOutOfWater) -
Method Summary
Modifier and Type Method Description 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 doorsTargetPathNodegetNode(double x, double y, double z)protected PathNodegetNode(int x, int y, int z)private PathNodeTypegetNodeType(int x, int y, int z)PathNodeTypegetNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)private PathNodegetPathNodeInWater(int x, int y, int z)PathNodegetStart()intgetSuccessors(PathNode[] successors, PathNode node)Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, clear, init, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
canJumpOutOfWater
private final boolean canJumpOutOfWater
-
-
Constructor Details
-
WaterPathNodeMaker
public WaterPathNodeMaker(boolean canJumpOutOfWater)
-
-
Method Details
-
getStart
- Specified by:
getStartin classPathNodeMaker
-
getNode
- Specified by:
getNodein classPathNodeMaker
-
getSuccessors
- Specified by:
getSuccessorsin classPathNodeMaker
-
getNodeType
public PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)- Specified by:
getNodeTypein classPathNodeMaker
-
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- Specified by:
getDefaultNodeTypein classPathNodeMaker
-
getPathNodeInWater
-
getNode
- Overrides:
getNodein classPathNodeMaker
-
getNodeType
-