Package net.minecraft.entity.ai.pathing
Class BirdPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.LandPathNodeMaker
net.minecraft.entity.ai.pathing.BirdPathNodeMaker
public class BirdPathNodeMaker extends LandPathNodeMaker
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
waterPathNodeTypeWeight
Fields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
Constructor Summary
Constructors Constructor Description BirdPathNodeMaker()
-
Method Summary
Modifier and Type Method 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 doorsTargetPathNode
getNode(double x, double y, double z)
protected PathNode
getNode(int x, int y, int z)
private PathNodeType
getNodeType(MobEntity entity, int x, int y, int z)
private PathNodeType
getNodeType(MobEntity entity, BlockPos pos)
PathNodeType
getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
PathNode
getStart()
int
getSuccessors(PathNode[] successors, PathNode node)
void
init(ChunkCache cachedWorld, MobEntity entity)
private boolean
isPassable(PathNode node)
private boolean
unvisited(PathNode node)
Methods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
adjustNodeType, findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeTypeFromNeighbors
Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Constructor Details
-
BirdPathNodeMaker
public BirdPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
init
in classLandPathNodeMaker
-
clear
public void clear()- Overrides:
clear
in classLandPathNodeMaker
-
getStart
- Overrides:
getStart
in classLandPathNodeMaker
-
getNode
- Overrides:
getNode
in classLandPathNodeMaker
-
getSuccessors
- Overrides:
getSuccessors
in classLandPathNodeMaker
-
isPassable
-
unvisited
-
getNode
- Overrides:
getNode
in 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)- Overrides:
getNodeType
in 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:
getDefaultNodeType
in classLandPathNodeMaker
-
getNodeType
-
getNodeType
-