use of com.faboslav.friendsandfoes.entity.ai.pathing.GlareNavigation in project friends-and-foes by Faboslav.
the class GlareEntity method createNavigation.
protected EntityNavigation createNavigation(World world) {
GlareNavigation glareNavigation = new GlareNavigation(this, world) {
public boolean isValidPosition(BlockPos pos) {
return !this.world.getBlockState(pos.down()).isAir();
}
};
glareNavigation.setCanPathThroughDoors(false);
glareNavigation.setCanSwim(false);
glareNavigation.setCanEnterOpenDoors(true);
EntityNavigationAccessor entityNavigation = (EntityNavigationAccessor) glareNavigation;
entityNavigation.setNodeReachProximity(0.1F);
return glareNavigation;
}
Aggregations