public class WaterPathNodeMaker extends PathNodeMaker
Modifier and Type | Field and Description |
---|---|
private boolean |
canJumpOutOfWater |
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
Constructor and Description |
---|
WaterPathNodeMaker(boolean canJumpOutOfWater) |
Modifier and Type | Method and Description |
---|---|
PathNodeType |
getDefaultNodeType(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 doors
|
TargetPathNode |
getNode(double x,
double y,
double z) |
protected PathNode |
getNode(int x,
int y,
int z) |
PathNodeType |
getNodeType(BlockView world,
int x,
int y,
int z,
MobEntity mob,
int sizeX,
int sizeY,
int sizeZ,
boolean canOpenDoors,
boolean canEnterOpenDoors) |
private PathNodeType |
getNodeType(int x,
int y,
int z) |
private PathNode |
getPathNodeInWater(int x,
int y,
int z) |
PathNode |
getStart() |
int |
getSuccessors(PathNode[] successors,
PathNode node) |
canEnterOpenDoors, canOpenDoors, canSwim, clear, init, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
public PathNode getStart()
getStart
in class PathNodeMaker
public TargetPathNode getNode(double x, double y, double z)
getNode
in class PathNodeMaker
public int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors
in class PathNodeMaker
public PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
getNodeType
in class PathNodeMaker
public PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType
in class PathNodeMaker
@Nullable protected PathNode getNode(int x, int y, int z)
getNode
in class PathNodeMaker
private PathNodeType getNodeType(int x, int y, int z)