public class BirdNavigation extends EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world| Constructor and Description |
|---|
BirdNavigation(MobEntity mob,
World world) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPathDirectlyThrough(Vec3d origin,
Vec3d target,
int sizeX,
int sizeY,
int sizeZ) |
protected PathNodeNavigator |
createPathNodeNavigator(int range) |
Path |
findPathTo(Entity entity,
int distance) |
protected Vec3d |
getPos()
The position to act as if the entity is at for pathfinding purposes
|
protected boolean |
isAtValidPosition() |
boolean |
isValidPosition(BlockPos pos) |
void |
setCanEnterOpenDoors(boolean canEnterOpenDoors) |
void |
setCanPathThroughDoors(boolean canPathThroughDoors) |
void |
tick() |
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, stopprotected PathNodeNavigator createPathNodeNavigator(int range)
createPathNodeNavigator in class EntityNavigationprotected boolean isAtValidPosition()
isAtValidPosition in class EntityNavigationprotected Vec3d getPos()
getPos in class EntityNavigationpublic Path findPathTo(Entity entity, int distance)
findPathTo in class EntityNavigationpublic void tick()
tick in class EntityNavigationprotected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
canPathDirectlyThrough in class EntityNavigationpublic void setCanPathThroughDoors(boolean canPathThroughDoors)
public void setCanEnterOpenDoors(boolean canEnterOpenDoors)
public boolean isValidPosition(BlockPos pos)
isValidPosition in class EntityNavigation