public class BirdPathNodeMaker extends LandPathNodeMaker
waterPathNodeTypeWeight
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
Constructor and Description |
---|
BirdPathNodeMaker() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
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(MobEntity entity,
BlockPos pos) |
private PathNodeType |
getNodeType(MobEntity entity,
int x,
int y,
int z) |
PathNode |
getStart() |
int |
getSuccessors(PathNode[] successors,
PathNode node) |
void |
init(ChunkCache cachedWorld,
MobEntity entity) |
private boolean |
isPassable(PathNode node) |
private boolean |
unvisited(PathNode node) |
adjustNodeType, findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeTypeFromNeighbors
canEnterOpenDoors, canOpenDoors, canSwim, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
public void init(ChunkCache cachedWorld, MobEntity entity)
init
in class LandPathNodeMaker
public void clear()
clear
in class LandPathNodeMaker
public PathNode getStart()
getStart
in class LandPathNodeMaker
public TargetPathNode getNode(double x, double y, double z)
getNode
in class LandPathNodeMaker
public int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors
in class LandPathNodeMaker
@Nullable protected PathNode getNode(int x, int y, int z)
getNode
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 LandPathNodeMaker
public PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType
in class LandPathNodeMaker
private PathNodeType getNodeType(MobEntity entity, BlockPos pos)
private PathNodeType getNodeType(MobEntity entity, int x, int y, int z)