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 Modifier and Type Field Description private Long2ObjectMap<PathNodeType>
field_27341
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)
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 PathNodeType
method_31932(int int2, int int3, int int4)
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
-
Field Details
-
field_27341
-
-
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
-
method_31932
-
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
-