public void postProcess() { super.postProcess(); }
public void setEnterDoors(boolean enterDoors) { this.nodeProcessor.setCanEnterDoors(enterDoors); }
public boolean getEnterDoors() { return this.nodeProcessor.getCanEnterDoors(); }
private Path createDefault(@Nonnull IBlockAccess blockaccess, @Nonnull EntityLiving entityIn, float distance, double x, double y, double z) { this.path.clearPath(); this.nodeProcessor.init(blockaccess, entityIn); // PathPoint pathpoint1 =nodeProcessor.getPathPointToCoords(entityIn, x, y, z); PathPoint pathpoint = nodeProcessor.getStart(); PathPoint pathpoint1 = nodeProcessor.getPathPointToCoords(x, y, z); PathPoint[] p = addToPath(entityIn, pathpoint, pathpoint1, distance); Path res; if (p == null) { res = null; } else { res = new Path(p); } this.nodeProcessor.postProcess(); return res; }
protected PathFinder getPathFinder() { this.nodeProcessor = new WalkNodeProcessor(); this.nodeProcessor.setCanEnterDoors(true); this.nodeProcessor.setCanSwim(true); return new PathFinder(this.nodeProcessor); }
PathNodeType pathnodetype = this.nodeProcessor.getPathNodeType(this.world, k, y - 1, l, this.entity, sizeX, sizeY, sizeZ, true, true); if (pathnodetype == PathNodeType.LAVA) { return false; pathnodetype = this.nodeProcessor.getPathNodeType(this.world, k, y, l, this.entity, sizeX, sizeY, sizeZ, true, true); float f = this.entity.getPathPriority(pathnodetype);
public void init(IBlockAccess sourceIn, EntityLiving mob) { super.init(sourceIn, mob); this.avoidsWater = mob.getPathPriority(PathNodeType.WATER); }
public boolean getCanSwim() { return this.nodeProcessor.getCanSwim(); }
int numPathOptions = nodeProcessor.findPathOptions(pathOptions, dequeued, pathpointEnd, maxDistance);
nodeProcessor.init(blockaccess, entityIn); PathPoint startPoint = nodeProcessor.getStart(); PathPoint endPoint = nodeProcessor.getPathPointToCoords(x, y, z); nodeProcessor.postProcess(); nodeProcessor.init(blockaccess, entityIn); nodeProcessor.postProcess();
protected PathFinder getPathFinder() { this.nodeProcessor = new WalkNodeProcessor(); this.nodeProcessor.setCanEnterDoors(true); this.nodeProcessor.setCanSwim(true); return new PathFinder(this.nodeProcessor); }
PathNodeType pathnodetype = this.nodeProcessor.getPathNodeType(this.world, k, y - 1, l, this.entity, sizeX, sizeY, sizeZ, true, true); if (pathnodetype == PathNodeType.LAVA) { return false; pathnodetype = this.nodeProcessor.getPathNodeType(this.world, k, y, l, this.entity, sizeX, sizeY, sizeZ, true, true); float f = this.entity.getPathPriority(pathnodetype);
public boolean getCanSwim() { return this.nodeProcessor.getCanSwim(); }
public void postProcess() { this.entity.setPathPriority(PathNodeType.WATER, this.avoidsWater); super.postProcess(); }
public void setEnterDoors(boolean enterDoors) { this.nodeProcessor.setCanEnterDoors(enterDoors); }
NodeProcessor nodeProcessor = navigator.getNodeProcessor(); if (nodeProcessor != null && nodeProcessor.getPathNodeType(this.entity.world, MathHelper.floor(this.entity.posX + moveX), MathHelper.floor(this.entity.posY), MathHelper.floor(this.entity.posZ + moveZ)) != PathNodeType.WALKABLE) { this.moveForward = 0.9F; this.moveStrafe = 0.0F;
public boolean getEnterDoors() { return this.nodeProcessor.getCanEnterDoors(); }
protected PathFinder getPathFinder(){ this.nodeProcessor = new ExperimentalWalkNodeProcessor(); this.nodeProcessor.setCanEnterDoors(true); return new PathFinder(this.nodeProcessor); } }
@Override protected PathFinder getPathFinder() { this.nodeProcessor = new DinosaurWalkNodeProcessor(((DinosaurEntity) this.entity).getDinosaur()); this.nodeProcessor.setCanEnterDoors(true); return new PathFinder(this.nodeProcessor); }