Package net.minecraft.entity.ai.pathing
Class BirdNavigation
java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.BirdNavigation
public class BirdNavigation extends EntityNavigation
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world -
Constructor Summary
Constructors Constructor Description BirdNavigation(MobEntity mob, World world) -
Method Summary
Modifier and Type Method Description protected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)protected PathNodeNavigatorcreatePathNodeNavigator(int range)PathfindPathTo(Entity entity, int distance)protected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected booleanisAtValidPosition()booleanisValidPosition(BlockPos pos)voidsetCanEnterOpenDoors(boolean canEnterOpenDoors)voidsetCanPathThroughDoors(boolean canPathThroughDoors)voidtick()Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
adjustPath, canSwim, checkTimeouts, continueFollowingPath, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, method_29934, onBlockChanged, recalculatePath, resetRangeMultiplier, setCanSwim, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop
-
Constructor Details
-
BirdNavigation
-
-
Method Details
-
isAtValidPosition
protected boolean isAtValidPosition()- Specified by:
isAtValidPositionin classEntityNavigation
-
getPos
The position to act as if the entity is at for pathfinding purposes- Specified by:
getPosin classEntityNavigation
-
findPathTo
- Overrides:
findPathToin classEntityNavigation
-
tick
public void tick()- Overrides:
tickin classEntityNavigation
-
canPathDirectlyThrough
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)- Specified by:
canPathDirectlyThroughin classEntityNavigation
-
setCanPathThroughDoors
public void setCanPathThroughDoors(boolean canPathThroughDoors) -
setCanEnterOpenDoors
public void setCanEnterOpenDoors(boolean canEnterOpenDoors) -
isValidPosition
- Overrides:
isValidPositionin classEntityNavigation