public class LandPathNodeMaker extends PathNodeMaker
| Modifier and Type | Field and Description |
|---|---|
protected float |
waterPathNodeTypeWeight |
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache| Constructor and Description |
|---|
LandPathNodeMaker() |
| Modifier and Type | Method and Description |
|---|---|
protected PathNodeType |
adjustNodeType(BlockView world,
boolean canOpenDoors,
boolean canEnterOpenDoors,
BlockPos pos,
PathNodeType type) |
void |
clear() |
PathNodeType |
findNearbyNodeTypes(BlockView world,
int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
boolean canOpenDoors,
boolean canEnterOpenDoors,
EnumSet<PathNodeType> nearbyTypes,
PathNodeType type,
BlockPos pos)
Adds the node types in the box with the given size to the input EnumSet.
|
protected static PathNodeType |
getCommonNodeType(BlockView world,
int x,
int y,
int z) |
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
|
static double |
getFeetY(BlockView world,
BlockPos pos) |
static PathNodeType |
getLandNodeType(BlockView world,
int x,
int y,
int z) |
TargetPathNode |
getNode(double x,
double y,
double 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(MobEntity entity,
BlockPos pos) |
private PathNodeType |
getNodeType(MobEntity entity,
int x,
int y,
int z) |
static PathNodeType |
getNodeTypeFromNeighbors(BlockView world,
int x,
int y,
int z,
PathNodeType type) |
private PathNode |
getPathNode(int x,
int y,
int z,
int maxYStep,
double prevFeetY,
Direction direction) |
PathNode |
getStart() |
int |
getSuccessors(PathNode[] successors,
PathNode node) |
void |
init(ChunkCache cachedWorld,
MobEntity entity) |
private boolean |
isValidDiagonalSuccessor(PathNode node,
PathNode successor1,
PathNode successor2,
PathNode diagonalSuccessor) |
canEnterOpenDoors, canOpenDoors, canSwim, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwimpublic void init(ChunkCache cachedWorld, MobEntity entity)
init in class PathNodeMakerpublic void clear()
clear in class PathNodeMakerpublic PathNode getStart()
getStart in class PathNodeMakerpublic TargetPathNode getNode(double x, double y, double z)
getNode in class PathNodeMakerpublic int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors in class PathNodeMakerprivate boolean isValidDiagonalSuccessor(PathNode node, @Nullable PathNode successor1, @Nullable PathNode successor2, @Nullable PathNode diagonalSuccessor)
@Nullable private PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction)
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 PathNodeMakerpublic PathNodeType findNearbyNodeTypes(BlockView world, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos)
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)
private PathNodeType getNodeType(MobEntity entity, BlockPos pos)
private PathNodeType getNodeType(MobEntity entity, int x, int y, int z)
public PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType in class PathNodeMakerpublic static PathNodeType getLandNodeType(BlockView world, int x, int y, int z)
public static PathNodeType getNodeTypeFromNeighbors(BlockView world, int x, int y, int z, PathNodeType type)
protected static PathNodeType getCommonNodeType(BlockView world, int x, int y, int z)