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, stop
protected PathNodeNavigator createPathNodeNavigator(int range)
createPathNodeNavigator
in class EntityNavigation
protected boolean isAtValidPosition()
isAtValidPosition
in class EntityNavigation
protected Vec3d getPos()
getPos
in class EntityNavigation
public Path findPathTo(Entity entity, int distance)
findPathTo
in class EntityNavigation
public void tick()
tick
in class EntityNavigation
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
canPathDirectlyThrough
in class EntityNavigation
public void setCanPathThroughDoors(boolean canPathThroughDoors)
public void setCanEnterOpenDoors(boolean canEnterOpenDoors)
public boolean isValidPosition(BlockPos pos)
isValidPosition
in class EntityNavigation